beautypg.com

Daqcalsetup, Format, Purpose – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 144: Parameter summary, Parameter values, Parameter type definitions chantype-(dcaltype)

background image

daqCalSetup

Also See: daqReadCalFile, daqCalConvert,

daqCalSetupConvert

Format

daqCalSetup(handle, nscan, readingsPos, nReadings, chanType, chanGain,
startChan, bipolar, noOffset)

Purpose

daqCalSetup

configures the order and type of data to be calibrated.

Parameter Summary

Parameter Type

Description

handle DaqHandleT

Handle to the device to be calibrated

nscan DWORD

Number of channels in a single scan

readingsPos DWORD

Position of the readings to be calibrated within the scan

nReadings DWORD

Number of readings to calibrate

chanType DcalType

Type of channel/board from which the readings to be calibrated are
read

chanGain DaqAdcGain

Gain setting of the channels to be calibrated

startChan DWORD

Channel number of the first channel to be converted

bipolar BOOL

If true, the DaqBook/DaqBoard is configured for bipolar readings;
if false, it is configured for unipolar readings

noOffset BOOL

If true, the offset calibration constant will not be used to calibrate
the readings; if false, the offset calibration will be used

Parameter Values

handle:

obtained from the daqOpen function

nscan:

the number of channels in the scan group configuration (see daqAdcSetScan)

readingsPos:

the position of the channels to calibrate within the scan (see daqAdcSetScan)

nReadings:

the number of readings to calibrate from 1 to 4,294,967,295; however, memory limitations

may apply

chanType:

see table below

chanGain: s

ee ADC Gain Definition table for chanGain parameter definitions

startChan:

must be a valid device channel within the scan group definition (see daqAdcSetScan)

bipolar:

valid values are either true (

≠ 0) or false ( = 0)

noOffset:

valid values are either true (

≠ 0) or false ( = 0)

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.

4.3-18 Daq API Command Reference

908494

Programmer’s

Manual