Daqcvtlinearsetup – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 157

daqCvtLinearSetup
Also See: daqCvtLinearConvert,
daqCvtLinearSetupConvert,
daqCvtSetAdcRange
Format
daqCvtLinearSetup(nscan, readingsPos, nReadings, signal1, voltage1,
signal2, voltage2, avg)
Purpose
daqCvtLinearSetup
saves the data required for daqCvtLinearConvert to perform conversions.
Parameter Summary
Parameter Type
Description
nscan DWORD
Number of readings in a single scan
readingsPos DWORD
Position within the scan of the first reading to convert
nReadings DWORD Number of consecutive ADC readings to convert
signal1 FLOAT
Transducer input signal that produces voltage1
voltage1 FLOAT
Transducer output voltage for input signal1
signal2 FLOAT
Transducer input signal that produces voltage2
voltage2 FLOAT
Transducer output voltage for input signal2
avg DWORD
Type of averaging to use
Parameter Values
nscan:
valid values range from 1 to 512
readingsPos:
valid values range from 0 to (nscan – 1)
nReadings:
valid values range from 1 to (nscan – readingsPos)
signal1:
single precision floating point (4 bytes) value representing transducer input voltage
voltage1:
single precision floating point (4 bytes) value representing transducer output voltage
signal2:
single precision floating point (4 bytes) value representing transducer input voltage
voltage2:
single precision floating point (4 bytes) value representing transducer output voltage
avg:
see table below
Parameter Type Definitions
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
DerrNoError
No
error
Programmer’s Manual
908494
Daq API Command Reference 4.3-31