beautypg.com

Autoremote, Syntax, Autoremote enableremote – Measurement Computing GPIB-488.2 User Manual

Page 20

background image

3-2

IOtech to Associated MCC APIs

986992

GPIB 488.2 Porting Guide

IOtech GPIB Commands

Associated MCC GPIB 488.2 Command(s)

Arm

No Equivalent Commands

Syntax

INT WINAPI Arm(DevHandleT devHandle,
ArmCondT condition);

Usage Notes

The Arm command allowed Driver488 to signal to the user-specified function when one or
more specified conditions occurred. Arm set a flag for each implementation of the user-
indicated conditions. Arm conditions were often combined using the bitwise OR operator.
Similar functionality can only be achieved by coding efforts, of such magnitude, that they are
beyond the scope of this document.

IOtech GPIB Command

Associated MCC GPIB 488.2 Command(s)

AutoRemote

EnableRemote

Syntax

AutoRemote

INT WINAPI AutoRemote(DevHandleT devHandle,
BOOL flag);

EnableRemote

EnableRemote(int board, short addresslist[])

Usage Notes

AutoRemote, no longer to be used, enabled [or disabled] the automatic assertion of the Remote
Enable (REN) line by Output. When AutoRemote was enabled, Output automatically
asserted REN before transferring any data. When AutoRemote was disabled, there was no
change to the REN line. AutoRemote was on by default.
EnableRemote - When this routine is executed, the system controller asserts the Remote
Enable (REN) line and the Controller addresses the specified devices as listeners.
The command issued in the following example places devices at GPIB addresses 6 and 7
(connected to GPIB board) in remote mode.
Example:

short addresslist[3] = {6,7,NOADDR};

EnableRemote(0, addresslist);