Converting NI 9210 Data (FPGA Interface)

NI CompactRIO Device Drivers Help

Edition Date: December 2017

Part Number: 373197L-01

»View Product Info Download Help (Windows Only)

Set the Calibration Mode to Calibrated in the C Series Module Properties dialog box for the NI 9210 if you want the FPGA I/O Node to return calibrated, fixed-point data from the module in units of volts. If you set the Calibration Mode to Calibrated, you must convert the fixed-point CJC data to binary CJC data and then convert the binary CJC data to temperature. Set the Calibration Mode to Raw if you want the FPGA I/O Node to return calibrated, binary data from the module. If you set the Calibration Mode to Raw, you must convert the binary thermocouple values to voltage and convert the binary CJC data to temperature. You must convert these values in the host VI.

Using a VI to Convert Data to Temperature

Refer to the Convert to Temperature (NI 9210) polymorphic VI in the labview\examples\CompactRIO\Module Specific\NI 9210\NI 9210 Support Files.llb for an example of converting calibrated or raw data to temperature. You can use the Convert to Temperature (NI 9210) VI as a subVI in the host VI.

Using an Equation to Convert Binary Thermocouple Values to Voltage

You can use the following equation in the host VI to convert binary thermocouple values to voltage:

Voltage = Binary Value × 80 mV ÷ 8,388,607

 where Binary Value is the value returned by the FPGA I/O Node.

Using an Equation to Convert Fixed-Point CJC Data to Binary CJC Data

You can use the following equation in the host VI to convert fixed-point CJC data to binary CJC data:

Binary CJC Data = (Fixed-Point CJC Data) ÷ (0.160 ÷ (224 – 1))

 where Fixed-Point CJC Data is the value returned by the FPGA I/O Node.

Using Equations to Convert Binary CJC Data to Temperature

You can use the following equations in the host VI to convert binary CJC data to temperature:

Calculate the resistance of the thermistor:

RT = (10000 × Binary CJC Data) ÷ (223Binary CJC Data)

Calculate the CJC temperature:

T = [ 1 ÷ [A + B(ln(RT)) + C(ln(RT))3]] – (273.15 + OffsetConstant)

 where T = temperature in °C A = 1.2873851 × 10-3 B = 2.3575235 × 10-4 C = 9.4978060 × 10-8 RT = thermistor resistance reading OffsetConstant* = 0.1

*The OffsetConstant is the typical temperature gradient between the CJC sensor and the thermocouple cold junction.

Refer to the National Institute of Standards and Technology (NIST) Monograph 175 thermocouple reference tables for more information about converting and adjusting thermocouple values.