01-09-2024 11:53 AM
I am developing a simple c program in MS Visual Studio 2019 that includes code to get measurements from the NI TC01 thermometer. Below and attached is a stand alone version. I had a similar routine running a few years ago on a different PC and a different version of Visual Studio.
The TC01 works ok with NiMax.
The function 'DAQmxCreateAIThrmcplChan' does not work and returns an error. Any help is appreciated.
thanks, mark
Solved! Go to Solution.
01-10-2024 12:01 PM
My I did not realize that 'DAQmxCreateAIThrmcplChan' needs the device name, which in my case is 'Dev3'. My code had it as 'Dev1'. I found the device name in NiMax.
I changed the name in my code and now everything works. I also found some code that searches for devices, checks for a match and returns the device name. I added that to my project and it is attached.