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.