Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Function DAQmxCreateAIVoltageChan excepts only -1 for parameter terminalConfig.

When configuring the AI ports on a USB6008
int32 __CFUNC     DAQmxCreateAIVoltageChan          (TaskHandle taskHandle, const char physicalChannel[], const char nameToAssignToChannel[], int32 terminalConfig, float64 minVal, float64 maxVal, int32 units, const char customScaleName[]);         
Using the code
    status = DAQmxCreateAIVoltageChan (tAIr, tmp_arr, NULL, DAQmx_Val_NRSE, (float64)numericUpDown_Ur_min->Value, (float64)numericUpDown_Ur_max->Value, DAQmx_Val_Volts , NULL);
produces a runtime error  "Requested value is not a supported value for this property." for the parameter terminalConfig.

Using the value -1 for this parameter works but I dont know what configuration this is.

RenéM


0 Kudos
Message 1 of 2
(2,854 Views)
Hi RenéM,

The USB 6008 doesn't support NRSE connections.  However, you could try connecting it differentially and using AISense as the negative pin as suggested in the following thread found here

I hope this helps,
Paul C.
0 Kudos
Message 2 of 2
(2,828 Views)