beautypg.com

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

Page 138: Parameter summary, Parameter values, Tabletype - daqcaltabletypet, Calequation - daqcalequationtype

background image

daqCalSetCalEquation

Also See: Other daqCal commands

Format

daqCalSetCalEquation(handle,chanConfig,tableType, calEquation)

Purpose

daqCalSetCalEquation

defines and sets the calibration equation

Parameter Summary

Parameter Type

Description

handle DaqHandleT

Handle to the device from which ADC transfer status
will be retrieved.

chanConfig DaqCalChanConfigT Configuration info which includes channel and gain.
tableType DaqCalTableTypeT Calibration table type to use.
pCalEquation DaqCalEquationType Defines the equation type to use

Parameter Values

handle:

obtained from the daqOpen function

chanConfig:

channel configuration information (see chanConfig table, below)

tableType: s

ee tableType table below

calEquation: see DaqCalEquationType below

Parameter Type Definitions

chanConfig - DaqCalChanConfigT

Definition

Description

DaqCalType

dctAdc = 0; dctDac = 1; dctTrigger = 2; dctVref = 3; dctTime = 4 (for time stamp)

channel

Channel number to which the equation will be applied

gain

Channel gain

flags

Channel flags, as applicable

extendedFlags

The Channel’s extended flags, as applicable.

tableType - DaqCalTableTypeT

Definition

Description

DcttFactory

Selects the factory calibration table. The factory calibration table reflects factory calibration
constants for the selected device. This is the default setting.

DcttUser

Selects the user-calibration table. The user-calibration table reflects calibration constants defined
by the user or the device’s user-calibration application. Refer to the device’s calibration
documentation for specific settings.

DcttSelfCal

Self-calibration constants.

calEquation - DaqCalEquationType

Definition

Description

dcetConstant

= 0; used to select constant

dcetLinear

= 1; used to select linear slope and offset

dcetSplitLinear

= 2; slope positive, slope negative; offset

dcetNonZeroSplitLinear

= 3; slope positive, slope negative, offset positive, offset negative; split

dcetTime

= 4; time stamp: year, month, day, hour, minute, second, milli-second

4.3-12 Daq API Command Reference

908494

Programmer’s

Manual