Agilent Technologies 4294A Programming Manual page 75

Precision impedance analyzer
Hide thumbs Also See for 4294A:
Table of Contents

Advertisement

Starting a Measurement (Trigger) and Detecting the Completion of a Measurement
Lines 30 to 90
Lines 110 to 130
Lines 150 to 160
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
Lines 210 to 220
Line 230
Line 250
Line 260
Example 5-1
Detecting the completion of sweeps using an SRQ
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250 Swp_wait:
260 Swp_end:
270
Chapter 5
Waiting for the Completion of One or More Sweeps (Detecting the
Identifies the external controller and Instrument BASIC and sets the
GPIB address and the select code.
Sets the trigger source to the internal trigger and sets the sweep
averaging factor to 4.
Enables Bit 0 (sweep completion bit) in the instrument event status
register and sets Bit 2 in the service request enable register to 1.
Clears the status byte register and the instrument event status register.
Sets the branch destination for the SRQ interrupt and enables the SRQ
interrupt can be used.
Executes the command to perform four sweeps.
Waits for the completion of the sweeps.
Displays the sweep completion message.
DIM Buff$[9]
INTEGER Scode
IF SYSTEM$("SYSTEM ID")="HP4294A" THEN
ASSIGN @Hp4294a TO 800
Scode=8
ELSE
ASSIGN @Hp4294a TO 717
Scode=7
END IF
!
OUTPUT @Hp4294a;"TRGS INT"
OUTPUT @Hp4294a;"AVERFACT 4"
OUTPUT @Hp4294a;"AVER ON"
!
OUTPUT @Hp4294a;"ESNB 1"
OUTPUT @Hp4294a;"*SRE 4"
OUTPUT @Hp4294a;"*CLS"
OUTPUT @Hp4294a;"*OPC?"
ENTER @Hp4294a;Buff$
!
ON INTR Scode GOTO Swp_end
ENABLE INTR Scode;2
OUTPUT @Hp4294a;"NUMG 4"
PRINT "Waiting..."
GOTO Swp_wait
PRINT "Sweep Complete"
END
(End of Sweeps)
Completion of a Measurement)
75

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents