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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 116
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 93
Chapter 4 GPIB 488.2 Library Reference
Programming Reference Manual 4-26 GPIB-488
TestSRQ
Evaluate state of SRQ line.
Syntax
C TestSRQ(int board, short *result)
Parameters
board is an integer which identifies the GPIB board to be used for this operation. In most
applications, this value is 0.
Returns
result is equal to 1 if the GPIB SRQ line is asserted. result = 0 if the GPIB SRQ line is
unasserted.
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
TestSRQ will not alter the state of the SRQ line.
Example
This example tests to see if SRQ is asserted.
C Short result;
TestSRQ (0, &result);
if (result == 1)
{ /* SRQ is asserted */}
else
{ /* No SRQ at this time */}
Przeglądanie stron 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 115 116

Komentarze do niniejszej Instrukcji

Brak uwag