ResetSys

NI-488.2

ResetSys


Purpose

Reset and initialize IEEE 488.2-compliant devices.

Format

C

void ResetSys (int boardID, const Addr4882_t *addrlist)

Visual Basic

CALL ResetSys (boardID%, addrlist%())

Interactive Control (Usage Notes)

ResetSys addrlist

Input

boardID The interface number
addrlist A list of device addresses that is terminated by NOADDR

Description

The reset and initialization take place in three steps. The first step resets the GPIB by asserting the Remote Enable (REN) line and then the Interface Clear (IFC) line. The second step clears all of the devices by sending the Universal Device Clear (DCL) GPIB message. The final step causes IEEE 488.2-compliant devices to perform device-specific reset and initialization. This step is accomplished by sending the message "*RST\n" to the devices described by addrlist.

Possible Errors

EABO I/O operation is aborted
EARG Either an invalid address appears in addrlist or addrlist is empty; Ibcnt is the index of the first invalid address in the addrlist array.
EBUS No devices are connected to the GPIB.
ECIC The interface is not the Controller-In-Charge; see SendIFC
EDVR The NI-488.2 driver is either configured incorrectly or is not properly installed.
EHDL boardID is 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.
ENOL No Listeners are on the GPIB.
EOIP Asynchronous I/O is in progress.
ESAC The board is not System Controller.