Measurement-computing GPIB-488 Uživatelský manuál Strana 53

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 116
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 52
Chapter 3 GPIB 488.1 Library Reference
Programming Reference Manual 3-40 GPIB-488
IBRSC
Request/Release System Control.
Syntax
C ibrsc (int board, int control)
Parameters
board is an integer containing the board handle.
control indicates whether the GPIB Interface Board is to become the system controller or
to relinquish system control capability. If
control is non-zero, the specified board becomes
the system controller on the GPIB. If
control is 0, the board is not the system controller.
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. If no error occurs, iberr equals 1 if
the specified interface board was previously the system controller or 0 if it was not.
Usage Notes
There may only be one system controller in a GPIB system.
Example
This example makes GPIB board 1 the system controller.
C int gpib1;
gpib1 = ibfind ("gpib1");
ibrsc (gpib1, 3);
Zobrazit stránku 52
1 2 ... 48 49 50 51 52 53 54 55 56 57 58 ... 115 116

Komentáře k této Příručce

Žádné komentáře