03-20-2013 05:46 AM
Hello,
I am trying to obtain temperatures (in °C) using K-type thermocouples plugged into the NI 9213, which, in turn, is plugged into a CompactRIO 9022. I am unable to linearise the temperatures correctly - ambient temperature reads 177.88°C, which is clearly wrong.
My code for the FPGA and for the host is attached. Does anyone know where I'm going wrong?
Thanks in advance for your help!
03-21-2013 06:43 PM
Hello Kyle,
You might want to start with the Getting Started example for the 9213 (Help » Find Examples… » Search » “9213”. The following snippet comes from the Host VI. Notice that we use the “NI 9213 Convert to Temperature.vi” as opposed to the one you are using, the “Convert Thermocouple Reading.vi”. The latter is a subVI of the former, but it includes some calibration values you might be missing. It also takes into account the CJC and the Autozero. I hope this helps!