Agilent Technologies 8935 Series Bedienungsanleitung Seite 97

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 329
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 96
Chapter 4 97
IEEE Common Commands
Common Command Descriptions
Example 4-7 Example BASIC program
10 INTEGER Output_que_val
20 OUTPUT 714;"*SRE 0"! Disable Service Requests
30 OUTPUT 714;"DISP RFG;RFG:OUTP ’Dupl’;AMPL 0 dBm;FREQ 320 MHz;*OPC?"
40 ENTER 714;Output_que_val
50 !Program will wait here until all operations complete
60 PRINT "All operations complete."
70 END
Using the *OPC? query using the MAV bit in the Status Byte
Bit 4 in the Service Request Enable Register is set to a value of 1
(enabled). The *OPC? query is sent to the Test Set at the end of a
command message data stream. The Test Set will request service when
the MAV bit in the Status Byte register is set to the TRUE, logic 1,
state. After the service request is detected the application program can
take appropriate action. Refer to the “HP-IB Service Requests” on page
167 for further information.
Example 4-8 Example BASIC program
10 OUTPUT 714;"*SRE 16"
20 !Enable SRQ on data available in Output Queue (MAV bit)
30 ON INTR 7,15 CALL Srvice_interupt ! Set up interrupt
40 ENABLE INTR 7;2 ! Enable SRQ interrupts
50 OUTPUT 714;"DISP RFG;RFG:OUTP ’Dupl’;AMPL 0 dBm;FREQ 320 MHz;*OPC?"
60 LOOP ! Dummy loop to do nothing
70 DISP "I am in a dummy loop."
80 END LOOP
90 END
100 SUB Srvice_interupt
110 ENTER 714;Output_que_val!Read the 1 returned by the *OPC?
120 ! query command
130 PRINT "All operations complete."
140 ! Note:
150 ! This interrupt service routine is not complete.
160 ! Refer to the “HP-IB Service Requests” on page 167 for
170 ! complete information.
180 SUBEND
Seitenansicht 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 328 329

Kommentare zu diesen Handbüchern

Keine Kommentare