Agilent Technologies 4294A Service Manual Page 75

  • Download
  • Add to my manuals
  • Print
  • Page
    / 518
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 74
Chapter 5 75
Starting a Measurement (Trigger) and Detecting the Completion of a Measurement
(End of Sweeps)
Waiting for the Completion of One or More Sweeps (Detecting the
Completion of a Measurement)
1. Chapter Title
2. Chapter Title 3. Chapter Title
4. Chapter Title
5. Starting a Measurement(Trigger)
and Detecting the Completion of a
Measurement(End of Sweeps)
Lines 30 to 90 Identifies the external controller and Instrument BASIC and sets the
GPIB address and the select code.
Lines 110 to 130 Sets the trigger source to the internal trigger and sets the sweep
averaging factor to 4.
Lines 150 to 160 Enables Bit 0 (sweep completion bit) in the instrument event status
register and sets Bit 2 in the service request enable register to 1.
NOTE In addition to the sweep completion bit, another bit is provided separately to indicate the
completion of data measurements for adapter setting, user calibration, and fixture
compensation. To detect the completion of these measurements, enable Bit 8 in the
instrument event status register.
Lines 170 to 190 Clears the status byte register and the instrument event status register.
Lines 210 to 220 Sets the branch destination for the SRQ interrupt and enables the SRQ
interrupt can be used.
Line 230 Executes the command to perform four sweeps.
Line 250 Waits for the completion of the sweeps.
Line 260 Displays the sweep completion message.
Example 5-1 Detecting the completion of sweeps using an SRQ
10 DIM Buff$[9]
20 INTEGER Scode
30 IF SYSTEM$("SYSTEM ID")="HP4294A" THEN
40 ASSIGN @Hp4294a TO 800
50 Scode=8
60 ELSE
70 ASSIGN @Hp4294a TO 717
80 Scode=7
90 END IF
100 !
110 OUTPUT @Hp4294a;"TRGS INT"
120 OUTPUT @Hp4294a;"AVERFACT 4"
130 OUTPUT @Hp4294a;"AVER ON"
140 !
150 OUTPUT @Hp4294a;"ESNB 1"
160 OUTPUT @Hp4294a;"*SRE 4"
170 OUTPUT @Hp4294a;"*CLS"
180 OUTPUT @Hp4294a;"*OPC?"
190 ENTER @Hp4294a;Buff$
200 !
210 ON INTR Scode GOTO Swp_end
220 ENABLE INTR Scode;2
230 OUTPUT @Hp4294a;"NUMG 4"
240 PRINT "Waiting..."
250 Swp_wait: GOTO Swp_wait
260 Swp_end: PRINT "Sweep Complete"
270 END
Page view 74
1 2 ... 70 71 72 73 74 75 76 77 78 79 80 ... 517 518

Comments to this Manuals

No comments