LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graph switching

Hello all, just a short question: is possible in LabView instead to plot two graph, have one only graph and a kind of button that switch between them?

Just an example to fix the idea: I create two arrays, for example one line and sine wave, then I could plot them in two separated graphs, but this is often space-consuming, so could I send the two array to one only graph and create a kind of swithing to see one of the two plot on the same graph window? Thank you very much in advance for your help! G.

0 Kudos
Message 1 of 6
(2,551 Views)

Hi G.,

 

just open the context help for the graph. It explains how to wire more than one plot into a single graph...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,545 Views)

Thank you for your response, what help page are you referring? thank you, G.

0 Kudos
Message 3 of 6
(2,539 Views)

Hi Gould,

 

I was referring to the context help of a graph terminal:

check.png

(I'm using a German version...)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,534 Views)

Ah ok, that's right. But the multiplot shows both the graphs at the same time on the same window.

I would like to see only one of the plot, and switch to the second when I want.

Is possible? Thank you again. G.

0 Kudos
Message 5 of 6
(2,526 Views)

Hi Gould,

 

yes, that's possible.

- A graph shows just those data that you provide by wire. So when you want to display one plot or the other you should use a case structure or a select function to choose which plot to display.

- You may play with the visibility property of the plots...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(2,524 Views)