LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to create a multipurpose graph display - how?

Hi all, I would like to create a simple VI, it has multiple sets of information and signal inputs (Signal generators or DAQmx cards), and whilst all the information is important, i don't need to see them all at the same time. instead I would like to create an oscilloscope-like display (one large graphical display), and boolean buttons that allow me to select which signals I want to display on the screen (graph).

 

So there two options, 1 boolean button to show only that waveform, and other boolean button to toggle on/off the waveform on the screen (means I can either show one dedicated waveform or show all the waveforms at the same time) this will allow me to compare the waveforms or just to focus on one particular waveform.

 

I was thinking of a case-structure to turn on/off the waveform for display on the graph, but how do i do that?

 

Help will be really appreciated!

multipurpose graph example.JPG

0 Kudos
Message 1 of 5
(2,637 Views)

Hi MKFX,

 

two notes:

1) How to change the visibility of plots is a more common question one may think - so do a little search on the forum...

2) LV2011 allows to set visibility of plots right from the plot legend, you don't need additional boolean buttons for that purpose...

Best regards,
GerdW


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

I understand what you mean, but it's not a simple change of plot visibilty by pulling down plot visibility options in the graph, but rather a VI program when I have different program VIs. (e.g sub-VI that does function 1 and sub-VI that does function 2 from the same input and I want to display the outcome onto the same graph display.), So it's not a simple "plot visibility function" for the graph, or am I mistaken?

0 Kudos
Message 3 of 5
(2,625 Views)

Hi MKFX,

 

"this will allow me to compare the waveforms or just to focus on one particular waveform"

"I was thinking of a case-structure to turn on/off the waveform for display on the graph"

 

That clearly reads like "change visibility of plots" to me...

Best regards,
GerdW


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

You need to make a distinction between changing the visibility of a plot and changing the generation of a plot. The former has been answered countless times, as Gerd pointed out. The latter requires you to change the array that's being created and sent to the graph. There is no other solution.

0 Kudos
Message 5 of 5
(2,609 Views)