R3I31 Spectrum Analyzer Operation Manual
4.1 GPM Remote Programming
(2) Sample Programs for HP200 and HP300 series (GPIB address = 1)
Example HP-6: Output marker frequency (integral)
10 OUTPUT 701;"MF?"
20 ENTER 701;A
30 END
Sample result: A=1.8E+9
Example HP-7: Output center frequency (character string)
10 DIM A$[30)
20 OUTPUT 701;"CF?"
30 EN1ER 701;A$
40 END
Sample result: A$=1.234567E+9
Example HP-8: Output status of the unit.
10 OUTPUT 701;"UN?"
20 ENTER 701;A
30 END
Sample result: A=2(dBuV)
Example HP-9: Output frequency and level values for marker position at the same time (multiple
values).
10 OUTPUT 701;"MFL?"
20 ENTER 701;Mf,MI
30 END
Sample result: Mf=1.8E+9 M1=-65.15
Example HP-10: With NEXT PEAK function, read 2nd and following 10 peak levels of the signal.
10 DIM M1(9)
20 OUTPUT 701;"PS"
30 FOR 1=0 to 9
40 OUTPUT 701;"NXP"
50 OUTPUT 701;"ML?"
60 ENTER 701;MI(I)
70 NEXT
80 END
Sample result: MI(0)=-55.01 MI(1)=-58.22....M1(9)=-70.26
4-36