Daqcvtrtdsetup – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 165

daqCvtRtdSetup
Also See: daqCvtRtdSetup, daqCvtRtdSetupConvert
Format
daqCvtRtdSetup(nscan, startPosition, nRtd, rtdType, avg)
Purpose
daqCvtRtdSetup
sets up parameters for subsequent resistance temperature detector (RTD) data
conversions.
Parameter Summary
Parameter Type
Description
nscan DWORD
Total number of channel readings in a single scan
startPosition DWORD Position of the first RTD reading group in the scan
nRtd DWORD
Number of the RTDs’ signals that are to be converted to temperature
values
rtdType RtdType
Type of RTDs being used to collect data
avg DWORD
Type of averaging to use
Parameter Values
nscan:
valid values range from 1 to 512; this number should be equivalent to (the number of RTDs * 4) +
any additional channels
startPosition:
valid values range from 1 to 507; the first scan position will be position 0, and the last
will be position (nscan-1)
nRtd:
valid values range from 1 to 128
rtdType:
see table below
avg:
see table below
Parameter Type Definitions
rtdType-(
RtdType)
Definition
Description
Dbk9RtdType100
Value for a 100 ohm RTD
Dbk9RtdType500
Value for a 500 ohm RTD
Dbk9RtdType1K
Value for a 1000 ohm RTD
avg
Definition
Description
avg = 0
Specifies block averaging--all scans are averaged together to compute a single value for each channel
avg = 1
Specifies no averaging--each scan’s readings are converted into measured signals
avg
≥ 2
Specifies moving average--each scan’s readings are averaged with the avg-1 preceding scans’
readings before conversion.
Returns
DerrRtdParam
Setup
parameter
out-of-range
DerrRtdValue
Invalid RTD type
DerrNoError
No
error
For more details on error messages refer to the Daq Error Table.
Programmer’s Manual
908494
Daq API Command Reference 4.3-39