Example Code

Calibrate Thermistor Using Steinhart-Hart Equation Using LabVIEW

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 shows how you can use the expression nodes and linear algebra VIs to calibrate thermistors based on at least 4 different calibration points.

 
Description

This vi can be used to find the Coefficients of the Steinhart-Hart equation which is useful when calibrating thermistors. The Steinhart-Hart equation for modeling thermistors can be formed into a linear equation that can be solved for its constants A, B, C and D. This example does not go over how to obtain the 4 calibration points.

Note: Steinhart-Hart Equation 1/T = A + B*ln(R) + C*ln(R)^2 + D*ln(R)^3, where T is the temperature of the thermistor and R is the resistance of the thermistor.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Take at least 4 measurements and record the resistance and Temperature of the thermistor.
  2. Input resistances into the Resistance Column and the temperature into the Temp column in sequential order.
  3. Run the VI.
  4. Write down the constants output for A, B, C and D.

Additional Information or References
VI Snippet

005.png

**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.