LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying multiple analog input channels using DAQmx READ commands.

I am using a NI USB-6009 module in a hydraulic load test stand.  I want to read multiple analog voltage inputs and display them on my front panel.  Using DAQmx commands or DAQ assistant, LabVIEW will only let you have one READ command for the analog inputs.  Can someone point me to an example or give me some ideas on being able to display at least 3 analog inputs?  Thanks.
0 Kudos
Message 1 of 5
(5,489 Views)
With the DAQ Assistant, when you get a list of 'Supported Physical Channels', look at the bottom of the window. It says "<Ctrl> or <Shift> click to select multiple channels. When you use the DAQmx Create Channel and have a physcial channel control/constant, click the little arrow on the right side of the control/constant, select browse and use the same <Ctrl> or <Shift> click technique. If you want to enter the channels manually, the format is Dev1/ai0:2 for consecutive or Dev1/ai0,Dev1ai3 non-consecutive channels.
0 Kudos
Message 2 of 5
(5,485 Views)
Thanks, that helped with being able to display the voltage readings for the compression and tension loads.  But i'm trying to keep some of my analog inputs separate from some of the others.  And if i have to keep them in the same READ command, how do i separate the readings to display them in different locations on my front panel.  I am a beginner at LabVIEW so my knowledge of the fine details is extremely limited.
0 Kudos
Message 3 of 5
(5,475 Views)
You can use the Split Signals function. This works well if you are using the DAQ Assistant which creates a dynamic data type (the grayish/black type of wire). If you use the lower level DAQmx functions, the data is either a 2D array of DBL or a 1D array of waveforms. With those, you simply use the Index Array function.
Message 4 of 5
(5,467 Views)
Thanks for the information!!
0 Kudos
Message 5 of 5
(5,461 Views)