G Mode Functions
Chapter 8
GPIB-232CT User Manual
8-8
© National Instruments Corp.
onl - Place the GPIB-232CT Online/Offline
Type:
General Use function
Syntax:
o
nl [bool]
<CR>
Purpose:
You
use
onl
to disable communication between the
GPIB-232CT and the serial port, or to re-initialize the
GPIB-232CT characteristics to their default values.
Remarks:
If the argument
bool
is 1, the GPIB-232CT places itself
online. If the argument
bool
is 0, the GPIB-232CT places
itself offline. By default, the GPIB-232CT powers up online.
If you call
onl
without an argument, the GPIB-232CT returns
the current status of the GPIB-232CT, which is 0 if the
GPIB-232CT is offline and 1 if the GPIB-232CT is online.
Placing the GPIB-232CT offline can be thought of as
disconnecting its serial cable from the serial device. When
placed offline, no data is sent out the GPIB-232CT serial port
and data coming in to the GPIB-232CT serial port is not saved
until
onl
is called with
bool=1
.
Placing the GPIB-232CT online enables data to be sent and
received over its serial port. Placing the GPIB-232CT online
also restores all GPIB-232CT settings to their power-on
values.
See Also:
Tables 7-1 and 7-2 for the GPIB-232CT power-on settings.
Examples:
1.
WRT$="onl 1"+CHR$(13)
'Put the GPIB-232CT
CALL IBWRT(GPIB232%,WRT$)
'online, and restore
'its power-on
'settings.
2.
WRT$="ONL 0"+CHR$(13)
'Put the GPIB-232CT
CALL
IBWRT(GPIB232%,WRT$) 'offline.