From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Viewing and hiding plot channels

Hi,
I've seen National Instrument's demo - Two Channel Osciloscope.
In this demo, they've used a case structure associated with what
channels to view (A, B or A&B).
However, I have 6 channels, on the same graph, and this method seems a
bit to awkward. I've tried accesing the channles using an attribute
node and then changing the color of the plot to the background color
so it won't show. This too sounds a bit strange, plus I could only
access the first plot.
Does anybody know of a better way to do it?

Thanks
Shai
ps, please reply to shayv@hotmail.com
0 Kudos
Message 1 of 2
(2,973 Views)
> I've seen National Instrument's demo - Two Channel Osciloscope.
> In this demo, they've used a case structure associated with what
> channels to view (A, B or A&B).
> However, I have 6 channels, on the same graph, and this method seems a
> bit to awkward. I've tried accesing the channles using an attribute
> node and then changing the color of the plot to the background color
> so it won't show. This too sounds a bit strange, plus I could only
> access the first plot.
> Does anybody know of a better way to do it?
>

Instead of setting the color to the background, you probably want to
set it to Transparent. This effectively hides the plot since nothing
will be drawn. To choose which plot to set, use the Active Plot
property. You will typically do this in a loop.
Make the top property
the Active Plot, grow the attribute node down and read or write the plot
properties below that. The graph will update at the end of each loop
iteration.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,973 Views)