LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When acquiring two signals, how do you graph the two datas against each other rather than time?

We are trying to produce a current vs. voltage graph. The data we are acquiring from the daq assistant gives us four columns: time voltage time current. We want to only extract the voltage and current columns (2 and 4) but do not know how to use the build arrays or index arrays. We tried splitting signals unsuccessfully as well as creating separate channels for the daqmx and also was unsuccessful using the build and index arrays. Attached are the labview file as well as the data file to further illustrate the output we are receiving. Thanks for your help!

Download All
0 Kudos
Message 1 of 6
(2,643 Views)

Your DAQ assistant is set for two channels.  But your conversion to array express VI is set wrong.  You have it set for 1-D array of scalars single channel.  You should set it for either 2-D array of scalars (channels are row or columns depending on which way you want to look at it) or for 1-D array of waveforms.

Message 2 of 6
(2,636 Views)

What you are doing makes no sense. The conversion from/to dynamic data and a waveform graph is just wrong. Leave it as dynamic data, use the Split Signals to get your two channels and wire each channel to the appropriate input of the Express XY Graph function. Done. Eventually, you will get more familiar with LabVIEW and not use the express functions but at the beginning, don't mix and match.

Message 3 of 6
(2,634 Views)

Thanks for your response. This may be a silly question, but how do you set it to 2D? 

0 Kudos
Message 4 of 6
(2,627 Views)

Dennis, thanks. Labview is definitely new to us as we are undergraduate students. We will try your suggestion; thank you!

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

@Jtsau wrote:

Thanks for your response. This may be a silly question, but how do you set it to 2D? 


Double click on the blue dynamic data conversion function.

Message 6 of 6
(2,618 Views)