« Close

Datasheets and User Guides

App Notes

Software & Driver

 

Configuring & Reading a Thermocouple

T-series devices have various configurable features as part of the Analog Input Extended Feature (AIN-EF) system. The following example demonstrates how to configure and read a thermocouple input in the Kipling Register Matrix.
 

1. First connect the thermocouple between AIN0 and GND. In Kipling navigate to the Register Matrix page and type "ain0" in the search bar.

 

2. Add the registers config-a, index, and read-a to the active register list.

 

3. Configure the thermocouple input by writing the following values to each of the pinned registers.
We write a 1 to config-a so that the output is in deg C
AIN0_EF_INDEX = 21
AIN_EF_CONFIG_A = 1

 

4. The AIN0_EF_READ_A register should be outputting the scaled temperature value in degC.

 

Reading a Thermocouple Input in LJLogM

Once the AIN extended feature is configured (above), you can read AIN0_EF_READ_A using any row in LJLogM.

 

Reading a Thermocouple Input in LJStreamM

AIN Extended Features are not supported in Stream mode. LJStreamM cannot read thermocouple inputs while streaming.

 

Reading a Thermocouple in DAQFactory

To read a thermocouple input you can use steps 1-4 above or write AIN0_EF_INDEX = 21 (for Type-J) and AIN0_EF_CONFIG_A = 1 (for deg C) in DAQFactory. See "Device Configuration" on the DAQFactory for LJM page.
To read the temperature look in the AIN0_EF_READ_A register. See "Linking LabJack Inputs/Outputs to DAQFactory Channels" on the DAQFactory for LJM page.

 

Reading a Thermocouple in Your Program

To configure and read a thermocouple you need to write AIN0_EF_INDEX = 21 (For Type-J) and AIN0_EF_CONFIG_A = 1 (for deg C). You can do this with a couple calls to eWriteName or a single call to eWriteNames.
To read the temperature value read AIN0_EF_READ_A. You can do this with a call to eReadName.