LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding Selected Plots

Hi,
 
I am plotting live data from tags on historical trend graphs.  The graphs plot data from various different tags on one graph (to allow comparison), however sometimes I would like the ability to hide other plots so I can show a specific plot in more detail.  A bit like hiding columns of data in Excel hides the corresponding data on a chart!
 
Is there a "hide" function/command/option on these charts?
 
The only (very crude) method I have discovered is simply turning the plot I want to hide the same colour as the background!!  Many thanks for any ideas...
 
Stuart
0 Kudos
Message 1 of 8
(3,644 Views)
Create a property node for the graph (right click it, Create...), select the Active Plot property and the Plot>>Visible property. Set the number of the active plot and then set its visibility to F. Make sure you select an existing plot.

___________________
Try to take over the world!
0 Kudos
Message 2 of 8
(3,634 Views)
A nice method of implementation of using property node to hide plots is to pass a Boolean array into an auto-indexed for loop, wire the index to the active plot and wire the value of the indexed Boolean to the plot visible, this will iterate through all plots and turn them on.  I do this often by leaving the Boolean array as a control on the front panel so the user can select which plots to visualize. 
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 3 of 8
(3,622 Views)
Many thanks to both of you! falkpl, please may I see the example you use so I can get a better idea of what you created? I've still got my beginner skates on, so this would help me greatly thanks
0 Kudos
Message 4 of 8
(3,619 Views)

This is what Paul described. Is this the simplest code ever or what?

Note that the order is imporant - the properties are executed top-to-bottom.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).

___________________
Try to take over the world!
Message 5 of 8
(3,614 Views)

exactly tst, thanks for coding it up.  I wouldnt have gotten to it until tonight. 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 6 of 8
(3,606 Views)
Hey all,
 
My problem is similar to this in a way.  I have 10 active plots with 10 visible plot selectors in the property node.  The plots are visible when the boolean controls are held true, but when they are switched to false the plots blink, rather than disappearing fully.  The problem could stem from my loops and structures but I was wondering if there was a quick fix somewhere within the property node that keeps the plots completely invisible.
 
Thanks,
0 Kudos
Message 7 of 8
(3,425 Views)


@Steve.Briggs wrote:

I was wondering if there was a quick fix somewhere within the property node that keeps the plots completely invisible.

Yes, you set the Visible property to F, just as was shown in the example.

If it's blinking, the most likely reason is that you are alternating between T and F in one or more places in your code. You can try finding all the references and property nodes relating to your graph or place a probe or an indicator in that point to see what the actual values being written to the property node are.

If you still have problems after trying that, you should upload your code, because there is other way really to help you.


___________________
Try to take over the world!
0 Kudos
Message 8 of 8
(3,419 Views)