beautypg.com

Lol sendlol setrwls, Syntax – Measurement Computing GPIB-488.2 User Manual

Page 36

background image

3-18

IOtech to Associated MCC APIs

986992

GPIB 488.2 Porting Guide

IOtech GPIB Command

Associated MCC GPIB 488.2 Command(s)

Lol SendLol

SetRWLS

Syntax

Lol

INT WINAPI Lol(DevHandleT devHandle);

SendLol

SendLLO(int board)

SetRWLS

SetRWLS(int board, short addresslist [])

Usage Notes

Lol is no longer to be used. The Lol command caused Driver488 to issue an IEEE 488
LocalLockout (LLO) bus command. Devices that support this command were inhibited from
being controlled manually from their front panels.
SendLol sends the GPIB Local Lockout (LLO) message to all devices. This means that once
they have been addressed as listeners, the devices will respond only to messages sent over the
GPIB by the Controller. In other words, they can not be locally programmed from front panel
controls. Only the Controller can return them to a local programming state. In the following
example, GPIB board 0 sends a Local Lockout to all GPIB devices connected to it.

Example:

SendLLO (0);

SetRWLS

is used to put all devices into the Remote state, with Local Lockout and addresses

specified devices as Listeners. This routine puts the specified devices in remote mode with
local lockout. The system controller asserts the REN (Remote Enable) line and addresses the
specified devices as listeners. These devices can then be programmed by messages sent over the
GPIB bus; in other words, they can not be locally programmed from front panel controls.
In the following example, all devices controlled by GPIB board 0 are put into Remote mode.
Devices 6 and 7 are then addressed as Listeners by the Controller.
Example:

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

SetRWLS(0, addresslist);