Measurement-computing GPIB-488 Manuale Utente Pagina 41

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 116
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 40
Chapter 3 GPIB 488.1 Library Reference
Programming Reference Manual 3-28 GPIB-488
IBLOC
Forces the specified board/device to go to local program mode.
Syntax
C ibloc (int boarddev)
Parameters
boarddev is an integer containing the device or board handle.
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 is used to place boards or devices temporarily in local mode. If this routine
specifies a device, the following GPIB commands are sent:
Talk address of the access board
Secondary address of the access board
Unlisten (UNL)
Listen address of the device
Secondary address of the device (as necessary)
Go to Local (GTL)
If this routine specifies a board, the board is placed in a local state by sending the Return to
Local (RTL) message, if it is not locked in remote mode. The LOK bit of the status word
indicates whether the board is in a lockout state. The
IBLOC function is used to simulate a
front panel RTL switch if the computer is used as an instrument.
Example
Return GPIB board 1 to local state.
C int gpib1;
gpib1 = ibfind("GPIB1");
ibloc (gpib1);
Vedere la pagina 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 115 116

Commenti su questo manuale

Nessun commento