Showing results for 
Search instead for 
Did you mean: 

splitting data into two graphs instead of one from DAQ



I am currently working on a VI to read in two voltages from two differrent load cells using the DAQ and then displaying them on one graph (voltage v time). What I want to do is be able to see the data on two different graphs from the different load cells at the same time. Any help is appreciated because I'm still a beginner with LABview.





0 Kudos
Message 1 of 8

There is a function on the Express palette called Split Signals.  It acts on the blue dynamic datatype wire break apart the signals.  It is to the blue wire what an index array would do to a new array of values or waveforms.

0 Kudos
Message 2 of 8

Thanks for the reply, so you're saying if I use the split signal function I can designate which data I want to send to the waveform graphs? How do I know when I split it which data is which? I think I will have 3 sets of data: time, voltage from load cell 1, and voltage from load cell 2.


0 Kudos
Message 3 of 8

Is it better to use the split data function or parse the data out into an array? And also where in my VI would i use the split function.

0 Kudos
Message 4 of 8

You will have TWO sets of data and each set will have timing data along with a Y array. Use the Split if you want to keep dynamic data. Convert to 2D DBL array if you don't want/need the timing information. Convert to a 1D Waveform Array if you do. Then you could use the Index Array. personally, I think dynamic data is just evil and never use it. Split/Index any time prior to displaying on two different graphs.

0 Kudos
Message 5 of 8

If you think Dynamic data is evil than I will believe you and then stick to the 1D waveform array. Is there a specific thing called a 1D waveform array?

0 Kudos
Message 6 of 8
Of course. The basic waveform data type in an array. A single waveform is one channel. A waveform array is multiple channels.
0 Kudos
Message 7 of 8



Potentially a simpler solution to get you going is, if you are using Waveform Charts (rather than graphs) you can right click on it and select stack plots.  This will give you two plot areas in the same graph.  Otherwise splitting it in your code as others have said.



James Mc
CLA and cRIO Fanatic
My writings on LabVIEW Development are at
0 Kudos
Message 8 of 8