Listen, Local, Locallist – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual
Page 345
![background image](https://www.manualsdir.com/files/797818/content/doc345.png)
15B. Driver488/SUB, W31, W95, & WNT
III. COMMAND REFERENCES - 15. Command References
III-330
Personal488 User’s Manual, Rev. 3.0
The
LightPen
command disables the detection of interrupts via setting the light pen status. The
default is light pen interrupt enabled.
Listen
SYNTAX
int pascal Listen(DevHandleT devHandle, char pri, char sec);
devHandle
refers to either an IEEE 488 interface or an external device. If
devHandle
refers to an external device, the command acts on the associated
interface.
pri
and
sec
specify the primary and secondary addresses of the device which is
to be addressed to listen.
RETURNS
-1 if error
MODE
CA
BUS STATES
ATN, LAG
SEE ALSO
Talk, SendCmd, SendData, SendEoi, FindListeners
EXAMPLES
errorcode = Listen (ieee, 12, -1);
The
Listen
command addresses an external device to Listen.
Local
SYNTAX
int pascal Local(DevHandleT devHandle);
devHandle
refers to either an IEEE 488 interface or an external device.
RETURNS
-1 if error
MODE
SC
BUS STATES
*REN
SEE ALSO
Remote, AutoRemote
EXAMPLES
errorcode = Local(ieee);
To unassert the Remote Enable (REN) line,
the IEEE 488 interface is specified.
errorcode = Local(wave);
To send the Go To Local (GTL) command,
an external device is specified.
In the System Controller mode, the
Local
command issued to an interface device, causes Driver488 to
unassert the Remote Enable (
REN
) line. This causes devices on the bus to return to manual operation.
A
Local
command addressed to an external device, places the device in the local mode via the Go To
Local (
GTL
) bus command.
LocalList
SYNTAX
int pascal LocalList(DevHandlePT devHandles);
devHandles
refers to a pointer to a list of external devices.
RETURNS
-1 if error
MODE
CA
BUS STATES
ATN
•UNL, MTA, LAG,GTL
SEE ALSO
Local, Remote, RemoteList, AutoRemote
EXAMPLES
deviceList[0] = wave;
deviceList[1] = timer;
deviceList[2] = dmm;
deviceList[3] = NODEVICE;
errorcode = LocalList(deviceList);
To send the Go To Local
(GTO) bus command to a
list of external devices.
In the System Controller mode, the
LocalList
command issued to an interface device, causes
Driver488 to unassert the Remote Enable (
REN
) line. This causes devices on the bus to return to
manual operation. A
LocalList
command addressed to an external device, places the device in the
local mode via the Go To Local (
GTL
) bus command.