Chapter 5
S Mode Functions
© National Instruments Corp.
5-25
GPIB-232CT User Manual
onl - Place the GPIB-232CT Online/Offline
Type:
Initialization
function
Syntax:
o
nl [bool]
<CR>
Purpose:
You
use
onl
to disable communications between the
GPIB-232CT and the GPIB, or to reinitialize 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,
is in the Idle Controller state, and configures itself to be the
System Controller.
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 GPIB cable from the other GPIB devices.
Placing the GPIB-232CT online allows the GPIB-232CT to
communicate over the GPIB, and also restores all
GPIB-232CT settings to their power-on values.
See Also:
Tables 4-1 and 4-2 for the GPIB-232CT power-on settings.
Examples:
1.
PRINT #1,"onl 1"
'Put the GPIB-232CT online
'and restore its power-on
'settings.
2.
PRINT #1,"ONL 0"
'Put the GPIB-232CT
'offline to prevent
'it from communicating
'with the 'GPIB.