14.1.5 Thermistor [T-Series Datasheet] | LabJack
« Close

Datasheets and User Guides

App Notes

Software & Driver


14.1.5 Thermistor [T-Series Datasheet]


AIN#_EF_INDEX values:

50: calculate temperature using the Steinhart-Hart equation
51: calculate temperature using the beta equation

This Thermistor Extended Feature automatically performs the necessary calculations for thermistors using the Steinhart-Hart equation or the beta equation.

Steinhart-Hart vs. beta: The beta function works well over a limited range of about 50 ºC. Typical error is ~±0.5 ºC. The Steinhart-Hart is usually more accurate (±0.01 ºC) across a larger range.  Note that this is just the accuracy of the math converting resistance to temperature, and there are likely other sources of error in your measurement that are similar or greater (e.g. accuracy of the thermistor itself and accuracy of the resistance to voltage conversion circuit).


To configure, write to the following registers.

AIN#_EF_CONFIG_A - Thermistor Options: Selects temperature units:

  • 0 = K
  • 1 = °C
  • 2 = °F

AIN#_EF_CONFIG_B - Excitation Circuit Index: The index of the voltage divider excitation circuit to be used.

See Excitation Circuits for circuit indices.

AIN#_EF_CONFIG_C - 2nd AIN: Channel Number to Measure Vresistor: For excitation circuits 3 and 5 this is the extra AIN used to measure the voltage across the fixed resistor. Ignored for other excitation circuits.

AIN#_EF_CONFIG_D - Excitation Volts or Amps: For excitation circuit 2 this is the fixed amps of the current source.  For excitation circuit 4 this is the fixed volts of the voltage source.  Ignored for other excitation circuits.

AIN#_EF_CONFIG_E - Fixed Resistor Ohms: For excitation circuits 3, 4 and 5, this is the ohms of the fixed resistor.

AIN#_EF_CONFIG_F - R25 Ohms: The nominal resistance in ohms of the thermistor at 25 °C.

  Steinhart-Hart Beta
AIN#_EF_CONFIG_G A coefficient ß
AIN#_EF_CONFIG_H B coefficient ºC at which ß was calculated
AIN#_EF_CONFIG_I C coefficient No meaning
AIN#_EF_CONFIG_J D coefficient No meaning

The G, H, I, and J config registers have different meaning for Steinhart-Hart and beta. Steinhart-Hart coefficients are normally provided in the thermistor's datasheet or obtained from the manufacturer.

There are 2 forms of the Steinhart-Hart equation:

1/T= A + B*ln(R/R25) + C*ln(R/R25)^2 + D*ln(R/R25)^3 
1/T= A + B*ln(R) + C*ln(R)^2 + D*ln(R)^3

We use the former with "R/R25".  If you have coefficients that were generated based on the "R" equation, just set R25 = 1 (AIN#_EF_CONFIG_F = 1).

Further, sometimes the ^2 term is dropped and the equation is written "A + B*ln(R) + C*ln(R)^3".  If you have coefficients that were generated based on this form set C = 0 (AIN#_EF_CONFIG_I = 0) and pass the given C value for D (AIN#_EF_CONFIG_J).

The online calculator from daycounter.com uses the "R/R25" form, and thus is useful for testing.  LabJack provides a Thermistor Calculator spreadsheet that is also useful for testing and troubleshooting (make a copy if you want an editable version).  The online calculator from thinksrs.com can be used to test "R" based coefficients or the beta equation, and can also be used to generate "R" based Steinhart-Hart coefficients from 3 resistance-temperature pairs.


The normal analog input registers are used to control negative channel, resolution index, settling, and range.

T7 only: If voltage will stay below 1.0V, use the 1.0V range for improved resolution and accuracy.


For results, read the following registers.

AIN#_EF_READ_A: Calculated thermistor temperature
AIN#_EF_READ_B: Thermistor resistance
AIN#_EF_READ_C: Thermistor voltage

Only reading AIN#_EF_READ_A triggers a new measurement, so you must always read A before reading B or C.


This example configures a LabJack to read from a Vishay NTCLE100E3103 10k Thermistor using a LabJack LJTick-Resistance to complete the excitation circuit. The LJTick-Resistance is connected to the AIN0/1 terminal block. The thermistor is connected between the Vref and INA terminals on the LJTick-Resistance.

AIN0_EF_INDEX = 50                -- Steinhart-Hart
AIN0_EF_CONFIG_A = 1              -- Output degrees Celsius.
AIN0_EF_CONFIG_B = 4              -- Excitation circuit #4.
AIN0_EF_CONFIG_C = 0              -- Second AIN, not used for excitation circuit #4.
AIN0_EF_CONFIG_D = 2.5            -- 2.5 V provided by the LJTick-Resistance
AIN0_EF_CONFIG_E = 10000          -- 10 kΩ shunt resistor provided by the LJTick-Resistance-10k.
AIN0_EF_CONFIG_F = 10000          -- R25 The nominal resistance of the thermistor at 25 ºC.
AIN0_EF_CONFIG_G = 0.003354016    -- Constants from the thermistor's datasheet.
AIN0_EF_CONFIG_H = 0.000256985
AIN0_EF_CONFIG_I = 0.000002620
AIN0_EF_CONFIG_J = 0.00000006383


AIN0_EF_READ_A = 23.19    -- Temperature of the thermistor. (°C)
AIN0_EF_READ_B = 10829.4  -- Calculated resistance. (Ω)
AIN0_EF_READ_C = 1.299774 -- Voltage across the thermistor. (V)