Ibclr – National Instruments GPIB-PC User Manual
Page 94

Section Four A
BASICA/QuickBASIC GPIB-PC Function Calls
©National Instruments Corp.
4A-19
GPIB-PC User Manual
BASICA/QuickBASIC
BASICA/QuickBASIC
IBCLR
IBCLR
Purpose:
Clear specified device
Format:
CALL IBCLR (BD%)
Remarks:
BD%
specifies a device.
The
IBCLR
function clears the internal or device functions
of a specified device. On exit, all devices are unaddressed.
IBCLR
calls the board
IBCMD
function to send the
following commands using the designated access board:
•
Listen address of the device;
•
Secondary address of the device, if applicable;
•
Selected Device Clear (SDC); and
•
Untalk (UNT) and Unlisten (UNL)
Other command bytes may be sent as necessary.
Refer to
IBCMD
for additional information. Refer also to
the discussion of device functions and the discussion
clearing the device and clearing the GPIB in Section
Three.
Device Example:
1.
Clear the device
VMTR%
.
100 CALL IBCLR (VMTR%)