How to Generate Event on change in Plot Legend for XY Graph

Hi,
I have two XY graphs on the front panel and would like to maintain a common plot legend such that any change in the plot legend affects both graphs.
Objective: I would like any value change in plot legend to fire an event.
How do I program that?
I know of value change event for the graph but am unable to find something specific to the plot legend. Other option is to have the user press a "refresh" button that will fire the event.
Feel free to share thoughts on other elegant methods to achieve the same objective.
Thanks,
Gurdas
Gurdas Singh
PhD. Candidate | Civil Engineering | NCSU.edu

Hi Sarah,
Looks like you are talking of exactly what I want!
I have attached a sample VI to try achieve what I want. But it still has some issues which are:
1) I am unable to configure a Plot Attribute Change Event. I have used a mouse leave event instead. How does one configure a Plot Attribute Change Event?
2) Is there no single property which will transfer all the settings of plot legend from one graph to plot legend of another graph? In my sample VI, I have to read each property of the master graph and feed it into the slave graph.
Kindly note I am using LV FDS 7.1 on Win2000
Thanks,
Gurdas
Message Edited by Gurdas on 03-27-2006 11:51 PM
Gurdas Singh
PhD. Candidate | Civil Engineering | NCSU.edu
Attachments:
Graph_PlotLegend_Event.vi ‏45 KB

Similar Messages

  • Hey there just wanna ask if how am i suppose to change my monthly allowance for purchasing because cant purchase anymore on apple cheers

    hey there just wanna ask if how am i suppose to change my monthly allowance for purchasing because i definitely exceeded the monthly allowance cheers

    JH_Park,
    Good afternoon!
    I definitely understand any disappoint you may be feeling from this situation. Verizon Wireless do not have any such policy regarding a limit of replacements we issue, the warranty is not ours but rather the manufacturer and I apologize for any confusion. I would like to review your account and the concerns you are having with this device. Please send me a direct message for further assistance.
    Thank you!
    AdamE_VZW
    Follow us on Twitter

  • Automatically labeling plot legend using XY Graphs?

    I want to plot:
    Time Amp
    1       2
    2       4
    3       9
    How do I get the legend to automatically say Amp, instead of Plot 0? I went to property node -> legend and I don't see any option
    that would read the "column" header and label the legend accordingly.
    In my example, the X array (Time) and Y array (Amp) are fed into Bundle which is then fed to the XY Graph input. The X array (1,2,3) and Y array (2,4,9)
    obviously carry no information about their respective column names (Time, Amp). So, the legend must read this information separately, but I don't know
    how to feed this information to the plot legend. 
    Solved!
    Go to Solution.

    You simply need a property node for "plot.name". You have only one plot, so the following is sufficient (of course you would replace the string diagram constant with whatever you read from the column header in the file)
    (If you have several plots, you would do it in a loop, setting the active plot from the iteration terminal, first, then writing the name)
    Since this is an xy graph, I would actually hide the legend and simply label the two axes according to their header. This can be done in a similar way with property nodes. See if you can figure it out.
    (Of course if the labels never change, enter them once manually and they will be saved with the VI. No code needed.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SetPlotName.png ‏3 KB

  • How do I programmatically change the plot legend names on my xy graph?

    I have a need to change the names/labels on my XY Graph's Legend at run time.  This is because plot 0 is not always the same set of data.  I have searched high and low for a couple days now to no avail.  The closest thing I've seen is overlaying a string over the plot legend, but I would prefer to do change the property of this box.  Any help would be appreciated.

    Hello Ben,
    with waveforms this also works for me fine. So where is the pitfall? (if always all works fine, one don't really gets experience)
    greets, Dave
    P.S. @ J.B. I used the Code Capture Tool from the Starware Thread, this made me so fast. If I could do, I would give it five stars each time I use it.
    Btw. would it be possible to programmatically give ratings with LV? Here it should be used. Thanks again to tst & the others
    Message Edited by daveTW on 06-14-2007 09:13 AM
    Greets, Dave
    Attachments:
    Example_FP.png ‏5 KB

  • How I Generate Event from ADF to talk BPEL

    Hi ,
    I want to generate Event in ADF on click of button.
    That Event suppose to send message to BPEL process.
    Can anyone suggest me on this?
    Thanks,
    Ramit

    You would need to use Mediator component in the SOA composite to listen to this event generated from the ADF layer.
    The Mediator can route to the BPEL component where you could do the required processing.
    ADF Developer's guide has all the required information with respect to this:
    http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/bcentities.htm#CHDHDIDB
    Thanks,
    Navaneeth

  • How do I fix the format of plot lines for an arbitrary number of sets of data plotted on the same x-y graph?

    I have written a VI to control an LCR meter and perform sweep functions. I have two x-y graphs on my front panel (one for each of 2 measured parameters). The VI is designed with a button to take a measurement, plot the data, and then wait for another event (like write data, clear plot, or measure again). The user can take simultaneous measurements and these are plotted on top of the data already there in the same x-y graphs (using an array of clusters with shift registers). There is no limit on how many sets of data can be on the x-y graph. 
    Now, my issue is in formatting the plot lines (color, thickness, marker type). I can fix the first plot line by adjusting the parameters of the x-y graph. However, I also want to control the format of all consecutive plot lines. How can I do this for an arbitrary number of lines? The main thing I want to do is to have all of them show the square marker type (the default is no marker type, just a line). 
    Thanks!

    Hi maximum23,
    You can use properties of plot to format the plot lines. You just have to select Active plot using property and then select color and line width etc..
    You can define color and width etc parameter by asking user or you can just make them default.
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

  • Capture mouse event(s) on XYgraph plot legend

    I notice that when I move the mouse over the plot name portion of the plot legend, the mouse icon changes.  If I left-click in this portion, the entire plot name region is highlighted. What event(s) and/or properties do I use to capture this behavior.  I would like to know the size and/or location of the plot name region highlighted.  I'm using LV 2010.  I know about the Legend.Size and Legend.Position properties. 

    Faustina:
    Unfortunately, there isn't an event we can latch onto when the plot within the legend is clicked on. As a workaround, we can add a radio button control beside the legend to select various plots. The radio button indices match up to the plot indices, so we can still select the active plot and rename it.
    I've attached a small example that allows the user to select a plot, and rename it from a menu of presets. You'll probably want to adapt it to run in a state machine or event structure, but the logic for changing plot names is there.
    Caleb Harris
    National Instruments | Mechanical Engineer | http://www.ni.com/support
    Attachments:
    change plot names.vi ‏19 KB

  • How do I determine the number of plots on a waveform graph?

    How do I determine the number of plots that have previously been plotted on a waveform graph? I am loading dynamic data from a file. If I convert to an array and size it and there is only one plot, I get the number of data points and I don't know how to tell the difference.

    Usually by reading the graph terminal or a local of it and determining the first or second dimension (not sure which at the moment) size of the resulting 2 dimensional array. If it is a 1 dimensional array you have either only one plot or an array of clusters each representing one plot. But as these data types are determined by compile time, there shouldn't be a problem with this causing ambiguity.
    Rolf K
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Changing the Plot Legend (NonSequential Names)

    I've got a Chart that serves multiple purposes.  As such, the plot legend needs to change.  I've looked through the forums, and have found options that let me create a dynamic legend of the form (Name1, Name2, Name3).
    However, I don't want the labels to be sequential in nature.  I'd like to be able to define the legend as either (x,y,z) or (A1,A2,B1)
    Any suggestions?
    Thanks!

    You have the option to change the scale label through the property node, using that you can set any name you want. Is that what you are looking for?
    The best solution is the one you find it by yourself

  • Rotate Plot Legend of XY graph

    Is it possible to rotate the plot legend so the letters of the plot names run from bottom to the top rather than across the operator interface?
    The names for my plots are bigger and I need to show at least four plots at the same time. Putting scales to the right/left/above or below without rotating may cause a shorter XY graph! 
    Any ideas for me?
    Regards
    K Waris
    Solved!
    Go to Solution.

    Hi,
    I don't know if there is a native way to do it, but you can "cheat" to do that:
    You can move the array where the legends are, or even make the array grow into lines instead of column.
    Is the idea ok for you?
    Giuliano Franchetto
    Student at the l'Ecole Nationale Supérieure des Mines de Saint-Etienne, cycle ISMIN (FRANCE)
    Attachments:
    up to dowm legend.vi ‏17 KB

  • How to trigger event when changing user status?

    hi,
    I'm having problems in triggering my workflow.
    In CIC0, When a status of a service request is changed to 'solution provided' then after saving service request, it should send a notification mail. I'm using ZBUS200116 which is deligated to BUS2000116. I've created event 'change' in ZBUS200116 which is in the start events of my workflow.
    I've tried creating an action profile which uses my workflow. The action profile is attached to the transaction but still it doesn't trigger my workflow.
    i've checked other existing workflows which uses the same object type BUS2000116 or ZBUS200116. These workflows were triggered by 'created' and 'completed' events only. Other added events in ZBUS200116 like 'changed' is not triggered. How is this possible when ZBUS200116 is deligated to BUS2000116?
    Your response would be highly appreciated.
    Thanks in advance.

    hi juan
    so here we are,now i got complete understanding of what u r doing and why
    you know you need not have created that change event because it wont serve your purpose anyway
    the reason is that because the way process in your workflow is flowing ,it wont happen that way using change event
    you just follow these  steps:
    1, use created event in your workflow
    2. that way when your contract ios created in rpocess status the event will be triggered only because you are creating a transaction whatever may be the status,so in all such cases you should use event created.
    3. now coming to the point of change in status or documents in contract
    in this case using loop will put you in deadlock and you will only be haing the error in such case
    you use WAIT step instead ,inside it use wait using conditions out of every option
    there you give your condition as change in whatever status
    like if you are chaning the status from in process to some other status ,put that status inside the condition
    as soon as that conditioon is met ,the WAIT step will be executed,
    that way you will be able to trigger the change in status through thje workflow
    so thats the solution with the approach you are using
    there are many approaches you can follow in workflows ,so depending upon that you can follow the different worlkflow tools u have there.
    also remember when your wait step gets executed there is always the time lag of 20-25 minutes after which changes will be reflected
    hope it will solve ur probs
    best regards
    ashish

  • How to generate pulse during changing boolean value?

    I need to generate short pulse during changing boolean value from 0 to 1. This pulse is needed to reset counter. 
    I was trying with Event Structure with Value Change but I think that I did something wrong.
    Maybe sambody can give me some tips to do it in other way?
    Thank you in advance.
    Regards
    Solved!
    Go to Solution.

    Rogal wrote:
    I need to generate short pulse during changing boolean value from 0 to 1. This pulse is needed to reset counter. 
    I was trying with Event Structure with Value Change but I think that I did something wrong.
    Maybe sambody can give me some tips to do it in other way?
    Thank you in advance.
    Regards
    We assumed you wanted a pulse when a front panel button (boolean) was clicked.
    I am still not sure just what it is you want.
    Do you want a single pulse when x is greater than 4?
    You don't need an event structure for that.
    Omar

  • How to generate event on other control within one event

    Hello
    I am using event structure.
    When program is inside the event case of one control, I want to trigger the �mouse down� event on another control at that time (without operating that another control),
    so that next time, another control�s event is called.
    I have many controls and hence thrir event cases , after which I want to trigger a specific event case corresponding to a button control.
    (I wish to keep the contents of button2 case inside the event only)
    In attached example:
    When user clicks �button 1� or �button 3�, event must be generated so that contents of �button 2� event are executed when program comes there next time
    Thanks
    Attachments:
    Trigger_Other_Event.vi ‏35 KB

    Sorry, I just noticed that you only use LabVIEW 6.1 where signaling properties are missing.
    Here is a simple solution for LabVIEW 6.1:
    - set all buttons to latch.
    - set all button events to "value changed"
    - merge the timeout event with event 2
    In event cases 1 and 3 set timeout to zero, in all other cases to -1 (no timeout).
    See attached example. I placed a 500ms wait.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Trigger_Other_EventMOD.vi ‏31 KB

  • How to generate event from a JTree node

    I plan to move a vector list to a JTree and then make it possible to launch an even by double clicking a node in the tree, how can i quicly achieve that cuz i have being trying to overcome that since...any assistance?
    Thanks

    Since TreeNodes are no Components you have to add a MouseListener to your JTree and use the JTree.getPathForLocation(int x, int y) method to get the TreePath. something like this should work for you:
    tree.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    if (e.getClickCount != 2) return
    JTree tree = (JTree)e.getSource();
    TreePath path = tree.getPathForLocation(e.getX(), e.getY());
    TreeNode node = (TreeNode)path.getLastPathComponent();
    Do whatever you want here
    Hope that helps, Mathias

  • How to generate report in a predefined naming convention for output file

    Hi Expert
    I have devloped one report in which i am getting the output as my required way.
    Now I need to name my report output in WCO.PM_sto.13-06-2011 format.
    where WCO is constant for all report output
    PM_sto is the parameter for which the report got generated
    and next part is the date of generation of the report.
    Each section is connected in a '.' in between them.
    Kindly let me know how can i achieve this.
    Regards
    Srikant

    If you are bursting the report,
    then you have flex to change and do what you asked for, you got to do it in Bursting query.

Maybe you are looking for

  • Need help with info about the possibility of altering images when saved in a different format

    I am very new to the design world.  I have a printing business and received and image to be printed in Adobe Acrobat (I think).  I needed to resize the image to be printed and took it into Photoshop CS6 where I cropped the edges.  I then resave it as

  • On PC: I cannot download adobe cloud desktop app nor any other produkt.

    When I am trying to download the adobe cloud for desktop, there is always an error while downloading and I can't find a solution. So I guess I can't install any produkt like photoshop if I don't have the desktop version? I really need those for a pro

  • Date picker calendar modification

    Is it possible to limit number of years presented in the select list of datepicker calendar? If yes, is it an option for dynamic shift, for example show +/- 10 years from current year? Version 2.0. Thanks.

  • Failed to deploy ADF Mobile app on Android device

    Hi, I created an application using Jdeveloper 11.1.2.3 .While deploying to android device ,I am getting the 'INSTALL_FAILED_INSUFFICIENT_STORAGE' error. The size of the apk file is 22.6 MB while the free space on device is 1.84 GB. The error message

  • MIDI Crash on IMac

    I'm trying to connect my Roland D70 thru my MOTU Fastlane to my new Imac. Everything appears to be installed correctly but as soon as I hit a key in the test I get the grey screen shut down system error. Anyone else experience this and thus found a w