LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Linearizing Thermocouples on cRIO using NI 9213

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!

Download All
0 Kudos
Message 1 of 2
(2,771 Views)

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!

 

9213 Getting started Host.png

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
0 Kudos
Message 2 of 2
(2,733 Views)