IBPAD

NI-488.2

IBPAD

Board-Level/Device-Level


Note ibpad is deprecated. Use ibconfig (IbcPAD) instead.

Purpose

Change the primary address.

Format

C

unsigned long ibpad (int ud, int v)

Visual Basic

CALL ibpad (ud%, v%)

or

status% = ilpad (ud%, v%)

Interactive Control (Usage Notes)

ibpad v

Input

ud Board or device descriptor
v GPIB primary address

Output

Function Return The value of Ibsta

Description

ibpad sets the primary GPIB address of the board or device to v, an integer ranging from 0 to 30. If no error occurs during the call, Iberr contains the previous GPIB primary address.

Possible Errors

EARG v is not a valid primary GPIB address; it must be in the range 0 to 30.
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.