beautypg.com

Disarm – Measurement Computing Personal488 rev.3.0 User Manual

Page 83

background image

Personal488 for Windows 95/98/Me/NT/2000

04-10-01

API Reference 6-15

Disarm

Syntax

INT WINAPI Disarm(DevHandleT devHandle, ArmCondT condition);

devHandle

refers to either an IEEE 488 interface or an external device. If

devHandle

refers to an external device, then the

Disarm

command acts on the hardware interface

to which the external device is attached.

condition

specifies which of the conditions are no longer to be monitored. If condition is

0

, then all conditions are

Disarm

ed.

Returns

-1

if error

otherwise, the current bit map of the event condition mask.

Bus States

None

Examples

errorcode=Disarm(ieee,acTalk|acListen|acChange);

errorcode=Disarm(ieee,0);

See Also

Arm, OnEvent

The

Disarm

command prevents Driver488 from invoking an event handler and interrupting the PC, even

when the specified condition occurs. Your program can still check for the condition by using the

Status

command. If the

Disarm

command is invoked without specifying any conditions, then all conditions are

disabled. The

Arm

command may be used to re-enable interrupt detection.

This manual is related to the following products: