280
290
300
310
320
330
340
350
360
370
380
390
400
410
420
430
440
450
460
470
480
490
500
510
520
530
540
550
560
570
580
590
600
610
620
630
640
Automating Measurements
Automated Measurement Setup and Control
!
Select CW display and sweep
OUTPUT
OHp871l;"DISP:ANN:FREql:MODE
CW"
OUTPUT
OHp871l;"SENSl:FREQ:SPAN
0
Hz;*WAI"
!
! Take a single sweep, leaving the analyzer
! in trigger hold mode.
OUTPUT
OHp871l;"ABOR;:INITl:CONT
OFF;*WAI"
!
! Turn on Marker 1
OUTPUT
QHp871l;"CALC:MARKl
ON"
!
Count=O
TO=TIMEDATE
! Step from 175 MHz 463 MHz by 6 MHz
FOR
Freq=175
TO 463 STEP 6
! Take a sweep
Freq,str$=VAL$(Freq)%"
MHz"
OUTPUT
QHp87ll;"SENSl:FREQ:CENT
";Freq,str$
OUTPUT
QHp871l;"INITl;*WAI"
!
! Set marker to frequency
OUTPUT
QHp87ll;"CALC:MARK:X
";Freq,str$
!
! Query the marker value
OUTPUT QHp87ll;"CALC:MARK:Y?"
ENTER
OHp87ll;Response
!
! Display the first three numbers in the array.
Msg$=”
J
"
&Freq,str$%":
"%VAL$(Response)%""'
OUTPUT
QHp8711;"DISP:ANN:MESS
";Msg$
PRINT
Msg$
Count=Count+l
NEXT Freq
Tl=TIMEDATE
PRINT "Sweeps per second:
";Count/(Tl-TO)
DISP "Sweeps per second:
";Count/(Tl-TO)
END
7-51
深圳市盛腾仪器仪表有限公司 Tel:0755-83589391 Fax:0755-83539691 Website: www.Sengt.com