beautypg.com

National Instruments GPIB-PC User Manual

Page 147

background image

BASICA/QuickBASIC GPIB-PC Function Calls

Section Four A

GPIB-PC User Manual

4A-72

©National Instruments Corp.

Device Examples:

1.

Change the secondary GPIB address of the device

PLOTTER%

from its current value to &H6A.

100 V% = &H6A
110 CALL IBSAD (PLOTTER%,V%)

2.

Disable secondary addressing for the device

DVM%

.

100 V% = 0

' 0 or &H7F may be used.

110 CALL IBSAD (DVM%,V%)

Board Examples:

1.

Change the secondary GPIB address of the interface board

BRD0%

from its current value to &H6A.

100 V% = &H6A
110 CALL IBSAD (BRD0%,V%)

2.

Disable secondary addressing for the interface board

BRD0%

.

100 V% = 0 ' 0 or &H7F may be used.
110 CALL IBSAD (BRD0%,V%)