LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Graph Control Reference

I woundering if anyone help me with this problem. I gathering data and displaying the data in multiple waveform graphs. I have control references to graphs in a while loop. Inside the while loop I write data to disk real-time. Outide the while loop I open and read the data file into analysis vis however would like to display the data into the same waveform graphs. Should I create additional control references to same graphs to display data? How should this be wired?

Thanks for your help.
0 Kudos
Message 1 of 6
(4,436 Views)
I think that you have the right idea, but let me clarify for you what I do. If I have multiple graphs(I am using 100 of them in one program), I create references to each of these graphs on the very first frame of my program. These references are built into an array. From this array, an indicator is created and hidden on the front panel. For the remainder of the program, if I want to access any one of these graphs, I simply use a propery node to get the value of the array that I created. Then this array can be indexed accordingly to access the graph that is needed. This keeps wires to a minimum and helps greatly especially in loops. One note about indexing this array: it needs to be indexed using the index array function; for some reason allowing a loop to "auto-index" does not work. Hope this helps!
Message 2 of 6
(4,422 Views)
Alv :

Could you plz attach your VI? i am stuck with a similar problem

:display Multi Waveform Graph
0 Kudos
Message 3 of 6
(4,418 Views)
Attached is an example for you.

-EF
Message 4 of 6
(4,418 Views)

I know its been some time since you sent this. What i meant was to displaying multiple channels is the same display. Lets say I have 20 channels of data (frequency vs amplitude) and want to put all 20 channels on the same display (same scale, etc). Would you have an idea as to how this is done?

Alv

0 Kudos
Message 5 of 6
(4,284 Views)
Hello,
 
It sounds like you're just trying to plot multiple waveforms to the same waveform graph.  You can do that by building an array of waveforms, and wiring that directly to the waveform graph.  Attached is a simple example; I hope this helps!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 6 of 6
(4,267 Views)