IBSAD

NI-488.2

IBSAD

Board-Level/Device-Level


Note ibsad is deprecated. Use ibconfig (IbcSAD) instead.

Purpose

Change or disable the secondary address.

Format

C

unsigned long ibsad (int ud, int v)

Visual Basic

CALL ibsad (ud%, v%)

or

status% = ilsad (ud%, v%)

Interactive Control (Usage Notes)

ibsad v

Input

ud Board or device descriptor
v GPIB secondary address

Output

Function Return The value of Ibsta

Description

ibsad changes the secondary GPIB address of the given board or device to v, an integer in the range 96 to 126 (hex 60 to hex 7E) or zero. If v is zero, secondary addressing is disabled. If no error occurs during the call, the previous value of the GPIB secondary address is returned in Iberr.

Possible Errors

EARG v is non-zero and outside the legal range 96 to 126.
EDVR The NI-488.2 driver is either configured incorrectly or is not properly installed.
EHDL ud is invalid or out of range.
ELCK The requested operation could not be performed because of an existing lock by another process.
ENEB The interface is not installed or is not properly configured.
EOIP Asynchronous I/O is in progress.