R3131 Spectrum Analyzer Operation Manual
4.1 GPIB Remote Programming
(1) Sample Programs for PC9801 series (GPIB address = 8)
Example PC-5: Output marker level (numerical variable)
10 ISET IFC:ISET REN
20 PRINT @8;"CF3OMZ SP1MZ MK3OMZ"
30 PRINT @8;"ML?"
40 PRINT @8;ML
50 PRINT "MARKER LEVEL=",ML
60 STOP
70 END
Center frequency, frequency span, marker
ON
Marker level?
Read marker level.
Display the result.
Sample result: MARKER LEVEL=-16.22
Example PC-6: Output center frequency (character variable)
10 ISET IFC:ISET REN
20 PRINT @8;"CF?"
30 INPUT @8;CF$
40 PRINT CF$
50 STOP
60 END
' Read center frequency.
' Display the result.
Sample result: 30.000E+6
Example PC-7: Output level and its unit
10 ISET IFC:ISET REN
20 PRINT @8;"RL?"
30 INPUT @8;RE$
40 PRINT @8;"UN?"
50 INPUT @8;UN
60 PRINT RE$,":",UN
70 STOP
80 END
' Read REF level.
' Read unit for level
' Display the result
Sample result: 0.0E+0:0
Example PC-8: Execute 6 dB down and then output frequency and level values (multiple items).
10 ISET IFC:ISET REN
20 PRINT @8;"CF3OMZ SP2OMZ"
30 PRINT @8;"MKBW6DB PS XDB"
40 PRINT @8;"MFL?"
Set center frequency and frequency span.
Execute 6 dB down.
Read frequency and level for marker position
at the same time.
50 INPUT @8;MF,ML
60 PRINT "MARKER FREQ=";MF;":MARKER LEVEL=";ML
70 STOP
80 END
Sample result: MARKER FREQ=400000: MARKER LEVEL=1.16
4-34