Measurement-computing GPIB-488 Manual de usuario Pagina 85

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 116
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 84
Chapter 4 GPIB 488.2 Library Reference
GPIB-488 4-17 Programming Reference Manual
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, IBSTA.
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);
Vista de pagina 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 115 116

Comentarios a estos manuales

Sin comentarios