Ibbna – National Instruments GPIB-PC User Manual

Page 91

Advertising
background image

BASICA/QuickBASIC GPIB-PC Function Calls

Section Four A

GPIB-PC User Manual

4A-16

©National Instruments Corp.

BASICA/QuickBASIC

BASICA/QuickBASIC

IBBNA

IBBNA

Purpose:

Change access board of device

Format:

CALL IBBNA (BD%,BNAME$)

Remarks:

BD%

specifies a device.

BNAME$

specifies the new access

board to be used in all device calls to that device.

IBBNA

is needed only to alter the board assignment from its
configuration setting.

The

IBBNA

function identifies the board that will be used

in subsequent device functions to access the specified
device.

IBBNA

permits you to alter the association of

devices and interface boards from the settings originally
configured with the configuration program.

The assignment made by this function remains in effect
until

IBBNA

is called again, the

IBONL

or

IBFIND

function is called, or the system is rebooted. The original
configuration established with the configuration program is
not permanently changed.

Refer also to Table 2.1.

Device Example:

1.

Associate the device

DVM%

with the interface board

"GPIB0"

.

100 REM DVM is a name assigned using
110 REM IBCONF.
120 REM (GPIB0 is a factory default board
130 REM name which cannot be changed).
140 BDNAME$ = "DVM"
150 CALL IBFIND (BDNAME$,DVM%)
160 REM This call to IBBNA establishes
170 REM GPIB0 as the access board for the
180 REM device DVM%.
190 BNAME$ = "GPIB0"
200 CALL IBBNA (DVM%,BNAME$)

Advertising