Measurement-computing GPIB-488 Instrukcja Użytkownika Strona 41

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 116
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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);
Przeglądanie stron 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 115 116

Komentarze do niniejszej Instrukcji

Brak uwag