Agilent Technologies E5052A Programmer's Manual page 56

Signal source analyzer
Hide thumbs Also See for E5052A:
Table of Contents

Advertisement

Making a Measurement
Waiting for End of measurement
Figure 3-2
SRQ generation sequence (at end of measurement)
Sample program
Example 3-1 is a sample program that demonstrates how to use an SRQ to interrupt the end
of measurement.
This program triggers the spectrum measurement of E5052A and then terminates the
program when the end signal is received.
Example 3-1
Sample program showing how to interrupt the end of measurement
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
280
290 Meas_wait:
300
310
320
330
340 Meas_end: OFF INTR 7
56
DIM Buff$[9]
INTEGER A
ASSIGN @Agte5052 TO 717
OUTPUT @Agte5052;":ABOR"
OUTPUT @Agte5052;":TRIG:MODE SP1"
OUTPUT @Agte5052;":TRIG:SP:SOUR BUS"
OUTPUT @Agte5052;":INIT:SP:CONT ON"
OUTPUT @Agte5052;":STAT:OPER:PTR 0"
OUTPUT @Agte5052;":STAT:OPER:NTR 16"
OUTPUT @Agte5052;":STAT:OPER:ENAB 16"
OUTPUT @Agte5052;"*SRE 128"
OUTPUT @Agte5052;"*CLS"
OUTPUT @Agte5052;"*OPC?"
ENTER @Agte5052;Buff$
ON INTR 7 GOTO Meas_end
ENABLE INTR 7;2
OUTPUT @Agte5052;"*TRG"
PRINT "Waiting..."
WAIT .1
OUTPUT @Agte5052;"*STB?"
ENTER @Agte5052;A
PRINT "a=";A
GOTO Meas_wait
3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents