03-31-2012 01:14 PM
Hello,
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.
Thanks
Blake
03-31-2012 01:17 PM
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.
03-31-2012 01:23 PM
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.
03-31-2012 01:36 PM - edited 03-31-2012 01:40 PM
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.
03-31-2012 02:00 PM
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.
03-31-2012 02:35 PM
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?
03-31-2012 02:41 PM
03-31-2012 03:21 PM
Hi,
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.
Cheers,