Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Analog Input Channels

Hello
1. I have NI-PCI 6259 Card
2. VC++ 6.0 only
3. I use "C" function from NI-DAQmx library

How I can measure Two Analog Input Chanels in the same time? I have set Two Task or One Task for 2 channels ?
0 Kudos
Message 1 of 3
(2,851 Views)
Greetings,

To acquire multipel analog input channels, you setup 1 task. You cannot setup multiple tasks of the same type at the same time.

In the follwing funciton:

int32 DAQmxCreateAIVoltageChan (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, const char customScaleName[]);

If you want to setup more than 1 channel, you can setup a list of channels that you wish to acquire in the "const char physicalChannel[]" input.
To specify a range of physical channels, use a colon between two channel numbers or two physical channel names:

Dev0/ai0:4

Dev0/ai0:Dev0/ai4

Use commas to separate physical channel names and ranges in a list as follows:

Dev0/ai0, Dev1/ai0:3, Dev1/ai6

Dev0/port0, Dev0/port1/line0:2

Hope this helps,
Regards,
Anuj D.
0 Kudos
Message 2 of 3
(2,841 Views)
Hello
OK thanks.I try it.
0 Kudos
Message 3 of 3
(2,839 Views)