S Mode Functions
Chapter 5
GPIB-232CT User Manual
5-46
© National Instruments Corp.
sre - Set (or clear) Remote Enable
Type
:
Specialized Controller function
Syntax:
sre
[bool]
<CR>
Purpose:
You
use
sre
if the I/O and bus management functions do not
meet the needs of your device.
sre
gives you more precise
control over the GPIB. Use
sre
to turn the Remote Enable
signal on and off.
sre
is not a function you will use
frequently because in most cases, the first I/O or bus
management function you call will set remote enable
automatically.
Remarks:
If the argument
bool
is 1, the GPIB-232CT asserts the
Remote Enable (REN) signal. If the argument
bool
is 0, the
GPIB-232CT unasserts REN.
Many GPIB devices have a remote program mode and a local
program mode. It is usually necessary to place devices in
remote mode before programming them from the GPIB. A
device enters the remote mode when the REN line is asserted
and the device receives its listen address.
Use
cmd
to send a device its listen address after using
sre
.
Use
loc
to return the device to local program mode.
If you call
sre
with an argument and the GPIB-232CT is not
System Controller, the GPIB-232CT records the ESAC error.
If you call
sre
without an argument, the GPIB-232CT returns
its current remote status: 1=remote, 0=local.
See Also:
rsc
,
cmd
, and
loc
.
Examples:
1.
PRINT #1,"SRE 1"
'Set REN.
2.
PRINT #1,"sre 0"
'Unassert REN.