Measurement-computing GPIB-488 Manual do Utilizador Página 94

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 116
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 */}
Vista de página 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 115 116

Comentários a estes Manuais

Sem comentários