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