beautypg.com

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

Page 133

background image

daqCalPerformSelfCal

Also See: Other daqCal commands

Format

daqCalPerformSelfCal(handle,chanConfig,calFlags)

Purpose

daqCalPerformSelfCal

selects a channel for self-calibration.

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.

calFlags DaqCalSelfCalFlags

Calibrates all available options.

Parameter Values

handle:

obtained from the daqOpen function

chanConfig:

channel configuration information (see chanConfig table, below)

calFlags: DcsfCalibrateAll

= 0x01, self-calibration of all available options

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.

Function Usage

Used to perform a self-calibration of all available options via the DcsfCalibrateAll

flag.

Prototypes

C/C++

daqCalPerformSelfCal(DaqHandleT handle, DaqCalChanConfigT chanConfig,
DaqCalSelfCalFlags calFlags)

Visual BASIC

VBdaqCalPerformSelfCal(ByVal handle&, ByRef chanConfig As
DaqCalChanConfigT, ByVal calFlags As DaqCalSelfCalFlags)

Returns

DerrNoError

No

error

Programmer’s Manual

908494

Daq API Command Reference 4.3-7