beautypg.com

Function usage, Returns – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 299

background image

Programmer’s Manual

908594

Daq API Command Reference 4.6-21


Option Type and Value Definitions Continued--DaqOptionType

WBK18 Options

(continued)

Option Type (optionType)

Description

Option Value

(optionValue)

Description

DmovWbk18esClearRAM

Erases all 1280 RAM
segments

DmovWbk18esWriteRAM

Increments the segment
pointer and writes the current
frequency, amplitude, relay
position, cycle time and
duration time to WBK18
RAM segment.

DmovWbk18esStart

Start output

DmotWbk18esImmediate

Performs an immediate
action on the analog
output

DmovWbk18esStop

Disable output – no voltage

DmovWbk18esRelayOpen

Open relay excitation source

DmotWbk18esRelay

Used to reset, turn on
and turn off the
excitation source

DmovWbk18esRelayClosed

Close relay excitation source

DmovWbk18esStop

Stops excitation output

DmovWbk18esStart

Starts excitation output

DmovWbk18esWriteRAM

Writes Amp/Freq/Relay
values to excitation source
RAM

DmotWbk18esImmediate

DmovWbk18esClearRAM

Clears excitation source RAM

DbovIgnoreFirstScanOff

Includes first scan

DbotIgnoreFirstScan

Set to On if using a
Wavebook as a Master
device and a DaqLab,
DaqScan or DaqBook,
WBK40/41 as a slave
device

DbovIgnoreFirstScanOn

Excludes first scan

Function Usage

The daqSetOption function may be used to set options or configuration settings for a device, module or channel.
Generally, this function allows setting states or configuration information for a particular feature for a given device,
module or channel that cannot or should not be set using normal scan configuration settings.

When configuring options which relate to module or channel configurtions, this function should be called to set the
option prior to arming the acquisition (see daqAdcArm) . The device should have already been opened prior to
calling this function (see daqOpen) and the handle parameter indicates the device for which the option is to
apply.

The flags parameter indicates if the option applies to a channel or an entire channel bank according to the module
used. The flags parameter may be set to the following:

DcofChannel

-- Apply option to the channel specified by the chan parameter.

DcofModule

-- Apply option to the entire module for which chan is located.

The optionType specifies which option to apply. See the table in the “Parameter Type Definitions” section for a
complete description of valid option types.

The optionValue parameter specifies the value to set the option specfied by optionType (if applicable). See
the table in the “Parameter Type Definitions” section for more detailed description of the valid option values for the
desired option type.

Returns

DerrNoError

No error