beautypg.com

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

Page 343: Parameter summary, Parameter values, Returns, Function usage, Prototypes, Visual basic, Program references

background image

daq9513GetHold

Also See: daq9513SetCtrMode

Format

daq9513GetHold(handle, deviceType, whichDevice, ctrNum, ctrVal)

Purpose

daq9513GetHold

reads the hold register of the specified counter.

Parameter Summary

Parameter Type

Description

handle DaqHandleT

Handle to the device from which to get the 9513 hold register

deviceType DaqIODeviceType

Specifies the 9513 device type

whichDevice DWORD

Specifies which 9513

ctrNum DWORD

The counter number

ctrVal PWORD

Variable which stores the value read from the hold 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 current devices is 0

ctrNum:

valid values range from 1 to 5

ctrVal:

pointer to a varible in which the contents of the hold register will be placed; valid values for the

hold register range from 0 to 65,535

Returns

DerrInvCtrNum

Invalid counter

DerrNotCapable

No 9513 available

DerrNoError

No error

For more details on error messages, please refer to the Daq Error Table.

Function Usage

The hold register read by daq9513GetHold is used in event-counting applications to store counter
values accumulated by the daq9513MultCtrl function. daq9513GetHold can read the hold register
while the count process is running without interrupting the process.

Prototypes

C/C++

daq9513GetHold(DaqHandleT handle, DaqIODeviceType deviceType, DWORD
whichDevice, DWORD ctrNum, PWORD ctrVal);

Visual BASIC

VBdaq9513GetHold&(ByVal handle&, ByVal deviceType&, ByVal whichDevice&,
ByVal ctrNum&, ctrVal%)

Program References

None

Programmer’s Manual

938295

9513 Counter-Timer Commands D-3