Ibonl – National Instruments GPIB-PC User Manual
Page 115
BASICA/QuickBASIC GPIB-PC Function Calls
Section Four A
GPIB-PC User Manual
4A-40
©National Instruments Corp.
BASICA/QuickBASIC
BASICA/QuickBASIC
IBONL
IBONL
Purpose:
Place the device or interface board online or offline
Format:
CALL IBONL (BD%,V%)
Remarks:
BD%
specifies a device or an interface board. If
V%
is non-
zero, the device or interface board is enabled for operation
(i.e., online). If
V%
is zero, it is held in a reset, disabled
mode (offline).
Taking a device or interface board offline may be thought
of as disconnecting its GPIB cable from the other devices.
IBONL
can also be used to restore the default configuration
settings of a device or interface board. Calling
IBONL
with
V%
non-zero when the device or interface board is already
online simply has the effect of restoring all configuration
settings to their defaults.
Device Examples:
1.
Disable the device
PLOTTER%
.
100 V% = 0
110 CALL IBONL (PLOTTER%,V%)
2.
Enable the device
PLOTTER%
after taking it offline temporarily.
100 BDNAME$ = "PLOTTER"
' Device name
110 'assigned at configuration time.
120 CALL IBFIND (BDNAME$,PLOTTER%)
130 REM IBONL with V% non-zero is
140 REM automatically performed as part of
150 REM IBFIND.
3.
Reset the configuration settings of the device
PLOTTER%
to
their defaults.
100 V% = 1
110 CALL IBONL (PLOTTER%,V%)