Measurement Computing Personal488 rev.3.0 User Manual
Page 70

Personal488 for Windows 95/98/Me/NT/2000
04-10-01
API Reference 6-2
Arm
Syntax
INT WINAPI Arm(DevHandleT devHandle, ArmCondT condition);
devHandle
refers to either an IEEE 488 hardware interface or an external device. If
devHandle
refers to an external device, the
Arm
command acts on the hardware
interface to which the external device is attached.
condition
is one of the following:
acSRQ
,
acDigMatch
Returns
-1
if
DevHandleT
is an illegal device or interface
otherwise, the current state of the event trigger flag
Bus States
None
Example
errorflag = Arm(ieee, acSRQ);
See Also
Disarm, OnEvent, DigArmSetup, DigSetup
The
Arm
command allows Driver488 to signal to the user-specified function when one or more of the
specified conditions occurs.
Arm
sets a flag for each implementation of the conditions that are user-
indicated.
Arm
conditions may be combined using the bitwise
OR
operator.
The following
Arm
conditions are supported:
Condition
Description
acSRQ
The Service Request bus line is asserted.
acDigMatch
The digital port match condition has occurred. See notes.
Notes:
(1)
The acDigMatch event is only available with the Personal488/ATpnp and the Personal488/PCI.
(2)
The use of the acDigMatch event requires configuration of the digital port via DigSetup and
setting a match value via DigArmSetup.