Chapter 5
S Mode Functions — onl
©
National Instruments Corporation
5-25
onl
Place the GPIB-232/485CT-A Online/Offline
Type
Initialization function
Syntax
onl [bool]
<CR>
Purpose
You can use
onl
to disable communications between the GPIB-232/485CT-A and the GPIB,
or to reinitialize the GPIB-232/485CT-A characteristics to their default values.
Remarks
If the argument
bool
is 1, the GPIB-232/485CT-A places itself online. If the argument
bool
is 0, the GPIB-232/485CT-A takes itself offline. By default, the GPIB-232/485CT-A powers
up online, is in the Idle Controller state, and configures itself to be the System Controller.
Placing the GPIB-232/485CT-A offline can be thought of as disconnecting its GPIB cable
from the other GPIB devices.
Placing the GPIB-232/485CT-A online allows the GPIB-232/485CT-A to communicate over
the GPIB and restores all settings to their power-on values.
If you call
onl
without an argument, the GPIB-232/485CT-A returns the current state, which
is 0 if the GPIB-232/485CT-A is offline and 1 if the GPIB-232/485CT-A is online.
See Also
S Mode Default Settings and Related Functions
.
Example 1
PRINT #1,"onl 1"
'Put the GPIB-232/485CT-A online and
'restore its power-on settings.
Example 2
PRINT #1,"ONL 0"
'Put the GPIB-232/485CT-A offline to
'prevent it from communicating with the
'GPIB.