03-06-2011 04:57 PM
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!
03-06-2011 05:25 PM
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.
03-06-2011 05:33 PM
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.
03-06-2011 06:56 PM
Thanks for your response. This may be a silly question, but how do you set it to 2D?
03-06-2011 06:57 PM
Dennis, thanks. Labview is definitely new to us as we are undergraduate students. We will try your suggestion; thank you!
03-06-2011 07:45 PM
@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.