beautypg.com

Daqreadcalfile – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 276

background image



daqReadCalFile

Also See: daqCalSetup,

daqCalConvert, daqCalSetupConvert

Format

daqReadCalFile (handle, calfile)

Purpose

daqReadCalFile

is the initialization function for reading in the calibration constants from the calibration text

file.

Parameter Summary

Parameter Type

Description

handle DaqHandleT

Handle to the device which will be associated with the calibration file

calfile LPSTR File name with optional path information of the calibration file

Parameter Values

handle:

obtained from the daqOpen function

calfile:

a pointer to a string of characters; if the value of calfile is null or empty (“”), the default

calibration file DAQBOOK.CAL will be read.

Returns

DerrInvCalfile

Error occurred while opening or reading calibration file

DerrNoError

No error

For more details on error messages refer to the Daq Error Table.

Function Usage

The daqReadCalFile function (usually called once at the beginning of a program) will read all the calibration
constants from the specified file. The calfile parameter specifies the path\filename of the calibration file to read.
If calibration constants for a specific channel number and gain setting are not contained in the file, ideal calibration
constants will be used—essentially performing no calibration for that channel. If an error occurs while trying to
open the calibration file, ideal calibration constants will be used for all channels and a non-zero error code will be
returned by the daqReadCalFile function.

Prototypes

C/C++

daqReadCalFile(DaqHandleT handle, LPSTR calfile);

Visual BASIC

VBdaqReadCalFile&(ByVal handle&, ByVal calfile$)

Program References

DBK19EX.CPP, DBK52EX.CPP

4.5-46 Daq API Command Reference

908794

Programmer’s

Manual