14.1.2 Offset and Slope [T-Series Datasheet] | LabJack
« Close

Datasheets and User Guides

App Notes

Software & Driver

Monday June 1st 2020
Support: LabJack engineers available through email and chat.
Shipping: We are processing and shipping all orders.
Stock: 51 of 56 products are in stock. More details.
Supply Chain: Minor impacts. More details.

14.1.2 Offset and Slope [T-Series Datasheet]



This Offset and Slope Extended Feature automatically adds a slope and an offset to analog readings.


To configure, write to the following registers.

AIN#_EF_CONFIG_D - Slope: Custom slope to be applied to the analog voltage reading. Default is 1.00.
AIN#_EF_CONFIG_E - Offset: Custom offset to be applied to the analog voltage reading. Default is 0.00.


The normal analog input settings are used for negative channel, resolution index, settling, and range.


For results, read AIN#_EF_READ_A.

AIN#_EF_READ_A - Returns the calculated voltage:

measured volts * slope + offset

Only reading AIN#_EF_READ_A triggers a new measurement.


To configure Offset and Slope AIN-EF for AIN3:

AIN3_EF_INDEX = 1         // feature index for Offset and Slope
AIN3_EF_CONFIG_D = 2.0    // slope
AIN3_EF_CONFIG_E = -0.5   // offset

Now each read of AIN3_EF_READ_A will return (AIN3 volts * 2.0) - 0.5.