Hello,
I have a PXI-6224 I/O module, and I have 10 analog voltages that I need to measure with the 6224. The voltages are differential pairs, so, I have them wired up as I am supposed to:
{(ai0,ai8) ; (ai1, ai9) ; ... ; (ai18,ai26)}. I am writing the code in C, and declare the voltage measurement task as :
DAQmxErrChk(DAQmxCreateAIVoltageChan(taskHandleReadAnalog[i], portNameReadAnalog[i], "", 10106 , minval[i], maxval[i], DAQmx_Val_Volts, NULL));
My question is, what do I put for the physical channel (portNameReadAnalog[i] in the above line) for a differential configuration (i.e. if I put /PXI1Slot2/ai0) does it know to read the difference btwn ai0 and ai8)? Basically, my question is, how do I refer to the differential channel pairs? By the ai number of the V+ line (0,1,2,3,4,5,6,7,16,17,18,19,20,21,22,23)? Or is there another way to refer to them?
Thanks.