Measurement-computing GPIB-488 Manuel d'utilisateur Page 94

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 116
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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 */}
Vue de la page 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 115 116

Commentaires sur ces manuels

Pas de commentaire