I'm attempting to use "C" to write code for the PCI-MIO-16XE-10/PCI-6030E DAQ interface card. I have it connected to the SC-2345 signal conditioning module with a SCC-TC02 thermocouple unit plugged into "Dev/ai0". The thermocouple reference circuit is connected to "Dev/ai8." When I run the example code for acquireNScansThermocouple I get a -1 return code. Debug statements show that the first call, DAQmxErrChk(DAQmxBaseCreateTask) is being executed, but the next statement, DAQmxErrChk(DAQmxBaseCreateAIThrmcplChan) fails.
By way of further information, the argument to the call is: DAQmxBaseCreateAIThrmcplChan (taskHandle, chan, "", min, max, DAQmx_Val_DegC, DAQmx_Val_K_Type_TC, DAQmx_Val_Chan, 0, "Dev1/ai8").
Although I have not checked the results fully, I can run the acquire1Scan example, and it seems to be performing properly, so it appears that the hardware is functioning properly. I have not yet tried to match the voltage output results to the temperature that I would expect the thermocouple to indicate.
I would greatly appreciate any indication of just what I can do next.
Harold Skank