t_in()

Reads an analog input channel, linearizes it according to the selected temperature sensor type, if required, and returns the temperature in units determined by the scale parameter.

Prototype

t_in(board_num, channel, scale, options=<TInOptions.FILTER: 0>)

Parameters

board_num (int)

The number associated with the board when it was installed with InstaCal or created with create_daq_device().

chan (int)

Input channel to read.

scale (TempScale)

Specifies the temperature scale that the input will be converted to.

options (TInOptions, optional)

Flags that control various options. Refer to the constants in the "options parameter values" section below.

Returns

options parameter values

FILTERWhen selected, a smoothing function is applied to temperature readings, very much like the electrical smoothing inherent in all hand held temperature sensor instruments. This is the default. When selected, 10 samples are read from the specified channel and averaged. The average is the reading returned. Averaging removes normally distributed signal line noise.
NOFILTERIf you use the NOFILTER option, the readings will not be smoothed and you will see a scattering of readings around a mean.
WAITFORNEWDATAWaits for new data to become available.
Notes on Scale options

Refer to board-specific information to determine if your hardware supports these options.