Resetsys, Resetsys -17 – Measurement Computing GPIB-488 User Manual
Page 85

Chapter 4
GPIB 488.2 Library Reference
GPIB-488
4-17
ResetSys
Initializes GPIB System.
Syntax
C
ResetSys(int board, short addresslist[])
Parameters
board
is an integer which identifies the GPIB board to be used for this operation. In most
applications, this value is 0.
addresslist
is an array of GPIB addresses, terminated by the value
NOADDR
. These
addresses identify the devices on the system to be reset.
Returns
ibsta
will contain a 16-bit status word as described in Appendix B,
.
iberr
will contain an error code, if an error occurred.
Usage Notes
This routine initializes the GPIB bus and all specified devices. First, the system controller
asserts the REN (Remote Enable) line and then the IFC (Interface Clear) line. This action
unlistens and untalks all of the attached GPIB devices and causes the system controller to
become the Controller-In-Charge (CIC).
The Device Clear (DCL) message is then sent to all of the connected devices. This forces the
devices to return to their default states and ensures that they can receive the Reset (RST)
message. A reset message (RST) is then sent to all of the devices specified by
addresslist
.
This resets the devices to specific parameters.
Example
This example resets the GPIB devices connected to GPIB board 0 and assigned GPIB bus
addresses of 6 and 7.
C
short addresslist[3] = {6, 7, NOADDR};
ResetSys(0, addresslist);