Link the "plot legend" checkboxes to individual booleans

Hi all,
I'm saving DAQ data from a waveform graph (where different channels are displayed as differently-colored plots on the same chart) and I want "unchecked" plots in the legend to go unsaved.
Ideally there would be some kind of boolean value associated with each checkbox which I could then use to say "yes, record" or "no, don't record."
Is there any way to do this? Or is there a better solution than this?
Solved!
Go to Solution.

It works for me. I am using LV 2014. I happened to have a VI with a graph with the checkboxes used so I added the property nodes as a test. The values in the boolean array follow the visibility checkboxes checked exactly.
Note: The array of clusters wired to the autoindexing tunnel is the data going to the graph. This tells the for loop how many plots exist.
Lynn

Similar Messages

  • How to remove a plot and resize the plot legend in LV 8.6 as in this link to a LV 7.0 example

    This VI ( ftp://ftp.ni.com/pub/devzone/epd/201150.vi ) works exactly as I want an 8.6 application to - but the property node used in the example is no longer supported.
    I can add/remove plots and resize the plot legend with 8.6 using the "LegNumRows" property however this property does not appear to behave the same way.
    It seems this should be straight forward but I must be missing something.
    Solved!
    Go to Solution.

    Hi again!
    I have implemented a method to shuffle the plots in the legend and was satisfied with one exception- the plot colors. This application allows the user to add or delete plots from the graph, adding a plot is easy as the new plot name gets appended to the next place on the legend and the number of rows grows by one. Deleting a plot is also quite easy but this action brought up a usability issue in that the existing plots that were shuffled on the legend would also shift their colorsaccordingly. To eliminate possible confusion I want to keep the correlation between existing plots and their assigned colors so I tried to use the plot color property to change the plot color programmatically with unexpected results.
    Programmatically changing a color from the "Plot Colors" array does not change the color of that plot if it is set to any of the "Common Plots" wih the exception of "Common Plot 0" - i.e. this doesn't seem to work for Bar Plots which is what I am using.
    I have attached a demo VI to illustrate this behavior - there are detailed free labels on the front panel which describe this in more detail.
    Regards and thank's in advance!
    Attachments:
    Plot color behavior.vi ‏27 KB

  • How can I limit the vertical size of the plot legend?

    Hi all,
    in my program I use a waveform graph and its plot legend.
    My problem is that the vertical size of the plot legend increases out of my frame and screen if I add too many plots to the graph!!!!
    Is there a possibilty to limit the vertical size of the plot legend and/or to use a vertical scrollbar in the plot legend?
    I use LV 8.2.1 .
    Thanks
    daHans

    You can write to the "Active Plot" property node. The example given in the thread I linked to before shows using this. Did you take a look at that example?
    I'm only suggesting the alternative of an "Active Plot" control if you're trying to give the user the ability to manipulate one of the plots (like color, point style, etc). If you have a lot of plots, and the plot legend is too big, you can provide a numeric control where the user selects the plot, and then additional controls to set the properties for that plot. Not as intuitive as the plot legend, but if that's what you've gotta do, that's what you've gotta do. Attached is a simple example (LabVIEW 8.20).
    Attachments:
    plot.vi ‏21 KB

  • How to chang the number of plots in the plot legend during run time?

    Hi, I am using waveform graph. At run time only i will come to know, how many plots should be plotted in the waveform graph. Based on the number of plots i have to change the plot legend. Is there any method to do the same?

    Maybe something like this?
    The inputs on the left are (from the top)
    your array of data you want to plot (or anything that contains the number of inputs you have)
    next one is an array of colorschemes (maybe you dont need this)
    and the third is an array of booleans that are true if that "channel" should be plotted and false otherwise
    /Anders
    Message Edited by Tohatsu on 01-08-2008 08:56 AM
    Attachments:
    graph.JPG ‏10 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

  • Why do waveforms show garbage in the plot legend and why is no one mentioning this?

    I have tried this on multiple machines and the result is the same. The plot legend expands and shrinks with garbage characters each time the waveform is updated.
    Sometimes the plot legend expands to as many as 100 garbage characters (or more). Is NI aware of this?

    Hi Ben
    Ok I managed to get a small enough version of it to zip it up and show what happens. I hope the demo is intact enough to show the plot legend.
    just run the VI "0_bloat-OVEN.vi"
    It uses a simulation file for the waveform but if u have a DAQ bd just uncheck the "Simulate DAQ bd?" button.
    Ive seen this on 3 machines now WIn 98 WIn XP and Win2K.
    Attachments:
    WF-PlotLegend.zip ‏778 KB

  • How to remove entries from the plot legend?

    Hello,
    I have got a waveform graph to display measurement data. Sometimes there will be 40 plots shown. The plot legend also expands to 40 and I limit the number of elements shown in the Plot legend and I have activated the vertical scroll bar. Of course 40 plots are too many to work with. So the user has the ability to select plots to be shown. Now I want to decrease the number of elements in the plot legend as well. But if there were once 40 elements the plot legend remains in this size and the vertical scroll bar indicates that there are more elements than shown even if there are only e. g. two plots in the graph.
    I don't want to increase and decrease the number of plots shown in the plot legend programmatically each time the user changes the number of plots shown. Secondly the plot legend shall have a maximum number of 20 elements (otherwise it would exceed my front panel). So I don't want to programmatically check whether to show the vertical scroll bar or not.
    The legend should look like a partially filled array with grayed out elements. 
    How do I do this? 
    Is there a simple way to clear the plot legend and remove all entries?
    Regards, Jörn

    Hi Suse,
    your example does not exactly solve my problem. I wanted the plot legend always to show 10 legend entries.
    But it helped me to find the solution: set LegNumRows to 10 and set LegPlotMin to the number of plots in the Graph (see attached example).
    One thing is still missing: setting the plot number currently at the top of the legend. If you run the attached example with 30 plots shown, scroll the legend down and run the VI once again with 3 plots shown then you will see no plots in the legend despite the fact that all could be shown. You need to move the scroll bar first to see the 3 elements.
    Best regards, Jörn
    Attachments:
    Graph_Plotanzeige.vi ‏12 KB

  • 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

  • Programmatically formatting the active plot and plot legend

    I am monitoring 6 production sequences on an XY graph. A ring control selects which sequence I show on the graph. For each sequence I have tag data showing the "actuals" and tag data showing the "averages" and a boolean toggle switch controls which of these plots I show on the graph. I am having trouble controlling the formatting of the plots (both actuals and averages are currently shown in white) and the plot legend is wrong. I have tried programming my vi to format my plots using a property node from the XY graph and writing to the correct plot inputs, however it doesn’t seem to be working. I would also like the plot legend to show ONLY the active plot on the XY graph.
    I would like a red continuous line for the averages and blue square scatter points for my actuals. I can’t seem to get this at all. I have attached my vi if anyone can help?
    Many thanks for taking the time to help,
    Best regards,
    Stuart
    Attachments:
    Historical Handling Time Trends.vi ‏137 KB

    Hi Stuart
    Maybe this helps you.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    Plots.vi ‏65 KB

  • What's this crap on my plot legend? And; how to get rid of it?

    Forgive the lack of a technical term; but what's the crap (shading/vertical lines) added to the mini-plot previews on the Plot Legend on this XY Graph in LV2012 SP1?
    And how do i get rid of it to make it look more like the original (e.g., just a solid color background)?
    I would normally specifcally identify these parts by name; yet it appears these parts have no name:
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

    Figured it out: it's from setting the Plot Area:Colors:BG Color property to Transparent. Changing this to a solid color likewise changes the preview to a solid color.
    Bonus points: who can describe those design elements that appear when plot area is transparent? This is not a trick question; i don't know the answer, and am curious.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Classic plot legend transparent background

    So I want to do some custom annotations to a graph using a picture control behind a graph. Since I like the classic graph’s look, I’m using the classic graph (but this is not necessarily necessary –is that correct English?).
    So my problem is this: When I make the graph BG transparent (to show the picture control with the custom graphics on it), the plot legend also shows the transparent BG in the little preview graph next to the plot name. Unfortunately, NI has placed the Visible Boolean behind this preview such that when you make the BG transparent, you see an old-school Boolean switch behind the damn plot example! This looks totally unacceptable. Is there any way to keep the BG from changing in the plot legend or any other way to fix this?
    Thanks!
    -Richard
    "Computers are useless. They can only give you answers." - Pablo Picasso
    Solved!
    Go to Solution.

    Here's an example of what I'm talking about. Notice how the plot legend exposes the Visible Boolean when you make the BG transparent. Try to imagine that the picture control actually has something useful in it...
    I suppose it might be possible to take a screenshot of the graph and then bring the picture control to the front with some sort of superposition of the screen shot and the image, but this seems like too much work and possibly prone to errors.
    "Computers are useless. They can only give you answers." - Pablo Picasso
    Attachments:
    Plot BG.vi ‏20 KB

  • Plot legend overlapping text

    I have an xygraph (from silver controls palette) (LabVIEW 2012 (SP1 12.0.1f5). I have encountered a problem where the plot legend text overlaps with plot graphic icon image. I don't know the cause of it but it always starts at my boss's end and the only solution that I have is to replace the xygraph with a new one (by right clicking the graph and selecting replace and then a new xygraph from the silver controls paltete. Is there a solution to this problem (autosize legend is turned on).
    This is how it should be (and this is how it starts)
    But this is how it ends up (after inderterminate time)
    Any fixes?
    Thanks in advance

    Right-click on the graph and go to Advanced->Customize.  You will now have the control editor open.  Click on the wrench in the toolbar.  It should now look like tweezers.  You can now move individual peices around.  This is how you can switch the legend text and icon.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Can I change the order plots are written to an XY graph without changing their order in the plot array?

    In LV6.1 the order in which plots are written to an XY graph is in reverse order from the order they appear in the array of plots that is feed to the XY graph control. Thus at places where �Plot 0� intersects �Plot 1�, the �Plot 0� data appears in front of the �Plot 1� data. I would like to reverse this without switching the order the plot array is built-up. Is this possible? I�ve attached a vi that demonstrates what I�m taking about. In my application I have many �highlights� that I do NOT want to list in the plot legend but that I wish to plot �over� the channel data that IS listed in the legend.
    Thanks
    Attachments:
    plotOrder.vi ‏42 KB

    Thanks for this idea. I misunderstood what you meant until Jeremy responded saying you were �right on the money�. I thought you meant that putting another plot in the array but making it transparent was going to help somehow, but now I understand that you mean plotting the �up front� data to a separate XY graph indicator which is transparent and overlaying the original XY graph. I may wind-up doing this. I�m just not excited about linking all the scaling info from one graph to the scaling of the transparent graph and creating the necessary event handling so that when the user scales one graph or changes the auto-scaling, the other graph�s scales gets updated, but perhaps it�s the only way. Thanks again for your input.

  • Event for a change in the cursor legend

    Hi!
    I need to recognize a change of the cursor properties by the user through the XY-Graph Cursor Legend! (i.e. changing cursor color)
    There seems to be no event for that in my event structure (although there is a event for changing the plot properties through the plot legend).
    I'm using LV2009SP1.
    Greets CtheR

    I need the recognize any change of the cursor props made by the user. Like that:
    Watching the cursor-Property for a change would be no help because there are automatic changes that I do not want to catch.
    Something similar to the plot attribute change event in an event structure would be most helpful:
    Greets CtheR

  • 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

Maybe you are looking for

  • User can receive email but cannot send

    Hi, I'm migrating a domain in an organization to another new domain. Now, we are migrating the workstations to the new domain. Users are not migrated, they are completely new in the new domain. So, the problem is that we have a workstation in the new

  • OIC: Need to find the Source Code for the YTDSummary.java file

    Hi All, We have 11.5.10 implemention and we are using the OIC(Incentive Compensation) Application. In the Report Module for the Year-To-Date Summary we need look for the Java Source Code.The cnytdsum.jsp file call the YTDSummary.java file. We have te

  • File mod date changes on all contents of user homes

    I've got network home directories shared over AFP in a small office on 10.8 mac mini server. Whenever a user logs in in the morning, all the files in his/her home directory change modification dates to the time of login. Any ideas why? Not sure what

  • Blogspot sites not opening in safari

    Unable to open blogspot.com sites in safari. Any suggestion.

  • New Mac Pro - 6 or 12 cores for Logic?

    Hi I'm about to place an order for a new Mac Pro, to replace our previous Mac Pro. Does anyone know if the 12 or the 6 core model is likely to deliver the best performance with Logic? The 6 core is clocked higher than the 12 core - 3.33GHz v 2.93GHz