Parameter type definitions chantype - dcaltype, Returns, Function usage – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 148: Prototypes, Program references

Parameter Type Definitions
chanType - DcalType
Definitions Channel
Configuration
Description
DcalTypeDefault
Any voltage channel
Defines a calibration of main unit or expansion channel voltage
DcalTypeCJC
Cold Junction Compensation
Channel
Defines a calibration of expansion CJC channel for a
thermocouple module or card.
DcalTypeBypass
Filter Bypass mode for DBK4
Defines a calibration for DBK4 channel in filter bypass mode
DcalTypeFilter
Filter Cutoff mode for DBK4
Defines a calibration for DBK4 channel in filter cutoff mode
The value for the chantype parameter should be set to DcalTypeCJC (1) when calibrating a
CJC channel of a thermocouple module or card, and DcalTypeDefault (0) when reading any
other channel.
Returns
DerrZCInvParam
Invalid parameter value
DerrNoError
No error
For more details on error messages refer to the Daq Error Table.
Function Usage
The daqCalSetupConvert function will setup the calibration in the same manner as the daqCalSetup
function and will perform the calibration in the same manner as the daqCalConvert function:
Like the daqCalSetup function, this function requires that all data to be calibrated comes from consecutive
channels, each configured for the same gain, polarity, and channel type. The calibration can be configured to
use only the gain calibration constant and not the offset constant--this allows the offset to be removed at
runtime using the zero compensation functions.
Refer to the daqCalSetup function for a description of the counts, nscan,
readingPos, nreadings, chanType, chanGain, startChan, bipolar
and
noOffset
parameters.
Like the daqCalConvert function, this function will modify the array of data passed to it. The counts
parameter specifies a pointer to an array of the raw A/D counts retrieved during an acquisition. Upon return,
the counts array will hold calibrated data. The scans parameter indicates the number of scans (as defined
by the current scan group configuration) in the acquisition.
Prototypes
C/C++
daqCalSetupConvert(DaqHandleT handle,DWORD nscan, DWORD readingsPos, DWORD
nReadings, DcalType chanType, DaqAdcGain chanGain, DWORD startChan, BOOL
bipolar, BOOL noOffset, PWORD counts, DWORD scans);
Visual BASIC
VBdaqCalSetupConvert&(ByVal handle&, ByVal nscan&, ByVal readingsPos&,
ByVal nReadings&, ByVal chanType&, ByVal chanGain&, ByVal startChan&,
ByVal bipolar&, ByVal noOffset&, counts%, ByVal scans&)
Program References
DBK81EX.CPP, DBK82_83EX.CPP, DBK90EX.CPP
4.3-22 Daq API Command Reference
908494
Programmer’s
Manual