Agilent Technologies 54503A Guide de l'utilisateur Page 338

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 716
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 337
338 Chapter5
Programming
Monitoring System Operation
EXAMPLE 4
10 OUTPUT 718;"IP;SNGLS;CF 300MHZ;SP 20MHZ;TS;"
20 OUTPUT 718;"RQS 16;"
30 ON INTR 7 GOSUB Srq
40 ENABLE INTR 7;2
50 Done=0
60 OUTPUT 718;"SRQ 16;"
70 Idle: IF Done=0 GOTO Idle
80 STOP
90 Srq: Sbyte=SPOLL(718)
100 PRINT Sbyte
110 PRINT "INTERRUPT GENERATED"
120 OUTPUT 718;"RQS 0;"
130 Done=1
140 RETURN
150 END
Here, on Line 50, a "command complete" service request is immediately
generated, and you can be sure that the routine will work.
Summary
The main points to using service requests are highlighted below.
1. Choose the conditions for generating service requests.
2. Set a bit mask that enables only these chosen conditions.
3. Prepare the computer to accept service requests. Use the ON
INTR…GOSUB and ENABLE INTR statements.
4. Once an interrupt is triggered, use the analyzer STB command or
the SPOLL statement to read the interrupt.
Vue de la page 337
1 2 ... 333 334 335 336 337 338 339 340 341 342 343 ... 715 716

Commentaires sur ces manuels

Pas de commentaire