Feedback on NI Community

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with DAQmxBase under Linux/C

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
0 Kudos
Message 1 of 2
(3,716 Views)
Welcome to the NI discussion forums!

Sorry, I cannot answer your question, but I would like to point out that you probably posted your question on the wrong board. (This part is for feedback on the discussion forums).

There is no specific board for Linux or C and maybe there should be?

Look around a bit in all of the NI Discussion Forums. More appropriate would be maybe e.g. Multifunction DAQ depending on the main focus of your question.

Hopefully, you'll get quick help once you post in a more suitable area. Good luck!. 🙂
0 Kudos
Message 2 of 2
(3,702 Views)