Daq9513setload, Format, Purpose – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 353: Parameter summary, Parameter values, Returns, Function usage, Prototypes, Visual basic, Program references

daq9513SetLoad
Also See: daq9513SetCtrMode, daq9513SetMasterMode
Format
daq9513SetLoad (handle, deviceType, whichDevice, ctrNum, ctrVal)
Purpose
daq9513SetLoad
outputs a value to the load register of the specified counter.
Parameter Summary
Parameter Type
Description
handle DaqHandleT
Handle to the device to set the 9513 load register
deviceType DaqIODeviceType
Specifies the 9513 device type
whichDevice DWORD
Specifies which 9513
ctrNum DWORD
The counter number
ctrVal WORD
Variable which stores the value read from the load
register of the selected counter
Parameter Values
handle:
obtained from the daqOpen function
deviceType:
must be set to value DiodtLocal9513
whichDevice:
valid value for all devices is 0
ctrNum:
valid values range from 1 to 5
ctrVal: p
ointer to a variable from which the load register will be set. Valid values for the load register
range from 0 to 65,535
Returns
DerrInvCtrNum
Invalid
channel
DerrInvTod
Invalid time of day mode
DerrInvDiv
Invalid divisor
DerrNotCapable
No 9513 available
DerrNoError
No
error
For more details on error messages, please refer to the Daq Error Table.
Function Usage
The load register can be used to set the counter’s initial value using the daq9513MultCtrl. Please see
the daq9513SetMasterMode and daq9513SetCtrMode function entries for a description of
various uses for the load register.
Prototypes
C/C++
daq9513SetLoad(DaqHandleT handle, DaqIODeviceType deviceType, DWORD
whichDevice, DWORD ctrNum, WORD ctrVal);
Visual BASIC
Vbdaq9513SetLoad&(ByVal handle&, ByVal deviceType&, ByVal whichDevice&,
ByVal ctrNum&, ByVal ctrVal%)
Program References
9513EX01.CPP, 9513EX01.FRM (VB)
Programmer’s Manual
938295
9513 Counter-Timer Commands D-13