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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 116
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 76
Chapter 4 GPIB 488.2 Library Reference
GPIB-488 4-9 Programming Reference Manual
PassControl
Makes another device the Active Controller.
Syntax
C PassControl(int board, short address)
Parameters
board is an integer which identifies the GPIB board to be used for this operation. In most
applications, this value is 0.
address is an integer representing the GPIB address of the device that is to become the
controller. The low byte of the integer contains the device's primary GPIB address. The high
byte of the address contains the device's secondary GPIB address. If the device has no
secondary address, the high byte of
address is 0.
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
When this routine is executed, the GPIB Take Control (TCT) command is issued. This
forces the Active Controller to pass control to the device at the specified address. This device
must have Controller capability.
Example
This example would make the device connected to Board 0 and whose GPIB address is 6 the
Active Controller.
C PassControl(0, 6);
Przeglądanie stron 76
1 2 ... 72 73 74 75 76 77 78 79 80 81 82 ... 115 116

Komentarze do niniejszej Instrukcji

Brak uwag