Daqcvttcsetupconvert, Daqdefaulterrorhandler – Measurement Computing TempBook rev.3.0 User Manual
Page 149

TempBook User’s Manual
daqCommand Reference (Enhanced API) 11-25
daqCvtTCSetupConvert
DLL Function
daqCvtTCSetupConvert(DWORD nscan, DWORD cjcPosition, DWORD ntc, TCType tcType,
BOOL bipolar, DWORD avg, PWORD counts, DWORD scans, PSHORT temp, DWORD ntemp);
C
daqCvtTCSetupConvert(DWORD nscan, DWORD cjcPosition, DWORD ntc, TCType tcType,
BOOL bipolar, DWORD avg, PWORD counts, DWORD scans, PSHORT temp, DWORD ntemp);
Visual BASIC
VBdaqCvtTCSetupConvert&(ByVal nscan&, ByVal cjcPosition&, ByVal ntc&, ByVal
tcType&, ByVal bipolar&, ByVal avg&, counts%(), ByVal scans&, temp%(), ByVal
ntemp&)
Delphi
daqCvtTCSetupConvert(nscan:DWORD; cjcPosition:DWORD; ntc:DWORD; tcType:TCType;
bipolar:longbool; avg:DWORD; counts:PWORD; scans:DWORD; temp:PWORD;
ntemp:DWORD)
Parameters
nscan
The number of readings in a single scan.
Valid range: 1- 512
cjcPosition
The position of the CJC reading within the scan.
Valid range:
16
18, if auto-zeroing is used with the TempBook.
ntc
The number of thermocouple readings that immediately follow the CJC reading within the scan.
Valid range: 1 -(nscan-cjcposition-1)
tcType
The type of thermocouples being measured.
bipolar
Non-zero if the DaqBook/DaqBoard is configured for bipolar readings.
avg
The type of averaging to be performed: block, none or moving.
counts
The raw data from one or more scans.
scans
The number of scans of raw data in counts.
temp
The converted temperatures in tenths of a degree C.
ntemp
The number of elements provided in the temp array (for error checking).
Returns
DerrTCE_PARAM
- Parameter out of range
DerrTCE_TYPE
- Invalid thermocouple type
DerrNoError
- No Error (also, refer to API Error Codes on page 11-39)
See Also
DaqCvtTCSetup, daqCvtTCConvert
Program References
None
Used With
All devices
daqCvtTCSetupConvert
sets up and converts raw A/D readings into temperature readings.
daqDefaultErrorHandler
DLL Function
daqDefaultErrorHandler(DaqHandleT handle, DaqError errCode);
C
daqDefaultErrorHandler(DaqHandleT handle, DaqError errCode);
Visual BASIC
VBdaqDefaultErrorHandler(ByVal handle&, ByVal errCode&)
Delphi
daqDefaultErrorHandler(handle:DaqHandleT; errCode:DaqError)
Parameters
handle
Handle to the device to which the default error handler is to be attached.
ErrCode
The error code number of the detected error (see table API Error Codes at end of this chapter).
Returns
Nothing (also, refer to API Error Codes on page 11-39)
See Also
daqGetLastError, daqProcessError, daqSetDefaultErrorHandler
Program References
None
Used With
All devices
daqDefaultErrorHandler
displays an error message and then exits the application program.
When the Daq* library is loaded, it invokes the default error handler whenever it encounters an
error. The error handler may be changed with daqSetErrorHandler.