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