Example Code

Convert Thermocouple Voltage to Temp

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This VI will demonstrates how to mathematically calculate the acquired voltage to temperature reading using thermocouple

Description:
This VI is designed to convert raw voltages into temperatures for a wide variety of thermocouple types. You can use this function to convert voltage for types that are not supported in DAQmx. Just create a voltage task input and use this VI to convert to a temperature.

Steps to implement or execute code
To implement this example:

  1. Fill all the input of the front panel
  2. Run the VI
  3. (Optional) Turn on the Highlight Execution to see the flow of the VI

To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible
NI-DAQmx 16.0 or compatible

Hardware
-

 

fp.JPGbd.JPG

**This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
khalsans
Member
Member
on

Great work, but you will also need the reverse polynomials if you plan on doing CJC .

The is a vi for reading the CJC temp:

DAQmx Acquire CJC Temperature
https://decibel.ni.com/content/docs/DOC-11132

And I did find reverse polynomials (T to V) at Omega's site.