R3131 Spectrum Analyzer Operation Manual
4.1 GPIB Remote Programming
1
Example PC-9: Execute OBW and output the result.
10 ISET IFC:ISET REN
20 PRINT @8;"CF3OMZ"
30 PRINT 08;"SP1OMZ"
40 PRINT @8;"MK3OMZ"
50 PRINT @8;"OBWPER 95%"
60 PRINT @8;"OBW"
70 INPUT @8;"OBW?"
80 INPUT @8;"FC,OBW"
90 PRINT "OBW=";OBW;":Fc=";FC"
100 STOP
110 END
' Set individual data.
Set OBW%.
Execute OBW.
Read the result of OBW.
Carrier frequency, and occupied bandwidth.
Sample result: OBW = 171000 : Fc = 2.503E+07
Example PC-10: Output level values for the maximum, 2nd and 3rd peak points of the signal.
10 ISET IFC:ISET REN
20 PRINT @8;"CFOMZ" ' Set central frequency and frequency span
30 PRINT @8;"SPIOOMZ"
40 PRINT @8;"PS"
50 INPUT @8;"ML?"
60 INPUT @8;A ' Read peak level.
70 PRINT @8;"NXP"
80 INPUT @8;"ML?"
90 INPUT @8;B ' Read 2nd peak level.
100 PRINT @;"NXP"
110 INPUT @8;"ML?"
120 INPUT @8;C ' Read 3rd peak level.
130 PRINT'lst PK=";A;":2nd Pk=";B;":3rd PK=";C
140 STOP
150 END
Sample result: 1st PK=-9.44:2nd PK=-10.06:3rd PK=-11.84
4-35