Measurement-computing GPIB-488 Bedienungsanleitung Seite 94

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 116
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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 */}
Seitenansicht 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 115 116

Kommentare zu diesen Handbüchern

Keine Kommentare