Daq9513multctrl, Format, Purpose – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 344: Parameter summary, Parameter values, Parameter type definitions, Daq9513multctrcommand)

D-4 9513 Counter-Timer
938295
Programmer’s Manual
daq9513MultCtrl
Also See: daq9513SetCtrMode, daq9513SetMasterMode
Format
daq9513MultCtrl(handle, deviceType, whichDevice, ctrCmd, ctr1, ctr2, ctr3,
ctr4, ctr5)
Purpose
daq9513MultCtrl
can arm or disarm specified counters, can save data from the specified counters to
the load and/or hold register, or can load data from the load and/or hold register to the specified counters;
each parameter can be activated for multiple counters simultaneously.
Parameter Summary
Parameter Type
Description
handle DaqHandleT
Handle to the device for which multiple counter commands
will be activated
deviceType DaqIODeviceType
Specifies the 9513 device type
whichDevice DWORD
Specifies which 9513
ctrCmd Daq9513MultCtrCommand
The counter command
ctr1 BOOL
A flag that, if
true
, enables the counter command to be
executed on counter 1; if
false
, it does nothing to
counter 1
ctr2 BOOL
A flag that, if
true
, enables the counter command to be
executed on counter 2; if
false
, it does nothing to
counter 2
ctr3 BOOL
A flag that, if
true
, enables the counter command to be
executed on counter 3; if
false
, it does nothing to
counter 3
ctr4 BOOL
A flag that, if
true
, enables the counter command to be
executed on counter 4; if
false
, it does nothing to
counter 4
ctr5 BOOL
A flag that, if
true
, enables the counter command to be
executed on counter 5; if
false
, it does nothing to
counter 5
Parameter Values
handle:
obtained from the daqOpen command
deviceType:
must be set to value DiodtLocal9513
whichDevice:
valid value for all devices is 0
ctrCmd:
see table below
ctr1-ctr5:
valid values are either true (
≠ 0) or false ( = 0).
Parameter Type Definitions
ctrCmd—(
Daq9513MultCtrCommand)
Definition
Description
DmccArm
Enable counters to start
DmccLoad
Load initial counter values from either load or hold register
DmccLoadArm
Perform initial loading and enable counting
DmccDisarmSave
Disable counters and save counter value
DmccSave
Transfer current counter value to hold register
DmccDisarm
Halt counting