R&S FSL Limit Lines and Limit Test
1300.2519.12 7.9 E-11
'––––––––– Peak search –––––––––––––––––––––––––––––––––––––––––––––––––––––
CALL InstrWrite(analyzer,"INIT:CONT OFF") 'Single sweep
CALL InstrWrite(analyzer,"INIT;*WAI") 'Perform sweep with sync
CALL InstrWrite(analyzer,"CALC:MARK:PEXC 6DB")
'
Peak excursion
C
ALL InstrWrite(analyzer,"CALC:MARK:STAT ON")
'Marker 1 on
CALL InstrWrite(analyzer,"CALC:MARK:TRAC 1")
'Assign marker1 to trace1
'––––––––– Measure modulation depth–––––––––––––––––––––––––––––––––––––––––
CALL InstrWrite(analyzer,"CALC:MARK:MAX;FUNC:MDEP ON")
'Marker to Peak;
CALL InstrWrite(analyzer,"CALC:MARK:FUNC:MDEP:RES?")
'Measure mod. depth
CALL InstrRead(analyzer, result$) 'Read out result
'––––––––– Read out result –––––––––––––––––––––––––––––––––––––––––––––––––
Print "AM Mod Depth [%]: ";result$
END SUB
REM
************************************************************************
Limit Lines and Limit Test
The example below shows the definition and use of a new limit line 5 for trace 1 with the following
characteristics:
• Upper limit line
• Absolute x–axis in the frequency range
• 5 reference values:
120 MHz / –70 dB, 126 MHz/–40 dB, 127 MHz/–40 dB, 128 MHz/–10 dB,
129 MHz/–40 dB, 130 MHz/–40 dB, 136 MHz / –70 dB
• Relative y–axis with unit dB
• Absolute threshold at –75 dBm
• No margin
The signal of the integrated calibration source (128 MHz, –30 dBm) is used to check the limit test.
REM ************************************************************************
Public Sub LimitLine()
result$ = Space$(100)
'––––––––– R&S FSL default setting ––––––––––––––––––––––––––––––––––––––––
CALL SetupInstrument 'Default setting
CALL InstrWrite(analyzer,"FREQUENCY:CENTER 128MHz;Span 10MHz")
'Span
CALL InstrWrite(analyzer,"Diag:Serv:Inp Cal;CSO –30dBm")
'Cal signal on