beautypg.com

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

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

background image

daq9513SetAlarm

Also See: daq9513SetMasterMode

Format

daq9513SetAlarm(handle, deviceType, whichDevice, alarmNum, alarmVal);

Purpose

daq9513SetAlarm

sets the specified alarm register.

Parameter Summary

Parameter Type

Description

handle DaqHandleT

Handle to the device from which to get 9513 frequency

deviceType DaqIODeviceType

Specifies the 9513 device type

whichDevice DWORD

Specifies which 9513

alarmNum DWORD

The alarm register number

alarmVal DWORD

The value to write to the selected alarm register

Parameter Values

handle:

obtained from the daqOpen function

deviceType:

must be set to value DiodtLocal9513

whichDevice:

valid value for all devices is 0

alarmNum:

valid values range from 1 to 2

alarmVal:

valid values range from 0 to 65,535

Returns

DerrInvCtrNum

Invalid counter number

DerrNotCapable

No 9513 available

DerrNoError

No error

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

Function Usage

The alarm register set by daq9513SetAlarm is only used if the corresponding comparator has been
enabled using the daq9513SetMasterMode function. The alarm register can then be used with the
comparators described in the entry for daq9513SetMasterMode.

Prototypes

C/C++

daq9513SetAlarm(DaqHandleT handle, DaqIODeviceType deviceType, DWORD
whichDevice, DWORD alarmNum, DWORD alarmVal);

Visual BASIC

VBdaq9513SetAlarm&(ByVal handle&, ByVal deviceType&, ByVal whichDevice&,
ByVal alarmNum&, ByVal alarmVal&)

Program References

None

D-6 9513 Counter-Timer

938295

Programmer’s Manual