Ibsad – National Instruments GPIB-PC User Manual

Page 146

Advertising
background image

Section Four A

BASICA/QuickBASIC GPIB-PC Function Calls

©National Instruments Corp.

4A-71

GPIB-PC User Manual

BASICA/QuickBASIC

BASICA/QuickBASIC

IBSAD

IBSAD

Purpose:

Change or disable Secondary Address

Format:

CALL IBSAD (BD%,V%)

Remarks:

BD%

specifies a device or an interface board. If

V%

is a

number between &H6O and &H7E, that number becomes
the secondary GPIB address device or interface board. If

V%

is &H7F or zero, secondary addressing is disabled.

IBSAD

is needed only to alter the value from its

configuration setting.

The assignment made by this function remains in effect
until

IBSAD

is called again, the

IBONL

or

IBFIND

function is called, or the system is rebooted.

When

IBSAD

is called and an error does not occur, the

previous value of ist is stored in

IBERR%

.

Device

IBSAD

Function:

When

BD%

specifies a device, the function enables or disables extended

GPIB addressing for the device. When secondary addressing is enabled,

IBSAD

records the secondary GPIB address of that device to be used in

subsequent device I/O function calls.

Board

IBSAD

Function:

When

BD%

specifies an interface board, the

IBSAD

function enables or

disables extended GPIB addressing and, when enabled, assigns the
secondary address of the GPIB-PC.

Refer also to

IBPAD

,

IBONL

, and Table 2.1.

Advertising