Download Universal Library for LabVIEW TM
Transcript
TInScan.VI
Changed R3.3 ID
Description:
Reads a range of channels from an analog input board, linearizes them according to temperature sensor type, and returns the temperatures to an array in degrees. The CJC channel, the gain, and sensor type are read from the configuration file. Use InstaCal to
change any of these options.
Summary:
Inputs:
BoardNum [U32] - board number, can be 0 to 100 when entered with InstaCal.
LowChan {U32] - Low mux channel of scan
HighChan [U32] - High mux channel of scan
Scale [U32] - CELSIUS, FAHRENHEIT or KELVIN
Options [TF] -Bit that controls data smoothing (averaging) option (T). “NOFILTER” (F) is default
Outputs:
DataValues [SGL] - Temperature returned here
ErrCode [I32] - Error code
Explanation of the Arguments:
BoardNum - refers to the board number associated with a board when it was installed.
Low / High Channel # - Specify the range of multiplexer channels that will be scanned. For EXP boards, these channel numbers are
calculated using the following formula:
A/DChan = A/D channel that mux is connected to
MuxChan = Mux board input channel number
Chan = (ADChan+1) * 16 + MuxChan (where MuxChan ranges from 0 to 15, indicating which channel on a particular
board)
For example, if you had an EXP16 connected to a CIO-DAS08 via the CIO-DAS08 channel 0 (remember, DAS08 channels are
numbered 0, 1, 2, 3, 4, 5, 6, and 7), AND if you had a thermocouple connected to channel 5 of the EXP16, the value for Chan would
be
(0 + 1) x 16 + 5 = 21. For 6 and 7 of the EXP16, the value for LowChan would be (0 + 1) x 16 + 5 = 21 and the value for HighChan
would be (0 + 1) x 16 + 7 = 23
Scale - Specifies the temperature scale that the input will be converted to. Choices are CELSIUS, FAHRENHEIT and KELVIN.
DataValues[] - The temperature is returned in degrees. Each element in the array corresponds to a channel in the scan. DataBuffer
must be at least large enough to hold HighChan - LowChan + 1 temperature values.
Options:
FILTER (T) - The TIn applies a smoothing function to thermocouple readings very much like the electrical smoothing inherent in
all
thermocouple instruments. When selected, 10 samples are read and averaged on each channel. The average is the reading returned.
NOFILTER (F) - If you use the NOFILTER option then the thermocouple will readings will not be smoothed and you will see a scattering of readings around an mean. This is the default.
91