More Complex Programming Examples
R&S FSMR
1166.3363.12 7.24
E-1
Limit Lines and Limit Test
The example below shows the definition and use of a new limit line 5 for trace 1 on screen A and trace 2
on screen B 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 FSMR
default setting ----------------------------------------
--
--
CALL SetupInstrument
'Default setting
CALL IBWRT(analyzer%,"FREQUENCY:CENTER 128MHz;Span 10MHz")'Span
Call ibwrt(analyzer%,"Diag:Serv:Inp Cal;CSO -30dBm") 'Cal signal on
'--------- Definition of limit lines ---------------------------------------
CALL IBWRT(analyzer%,"CALC:LIM5:NAME 'TEST1'")
'Define name
CALL IBWRT(analyzer%,"CALC:LIM5:COMM 'Upper limit'") 'Define comment
CALL IBWRT(analyzer%,"CALC1:LIM5:TRAC 1")
'Assign trace in screen A
CALL IBWRT(analyzer%,"CALC2:LIM5:TRAC 2")
'Assign trace in screen B
CALL IBWRT(analyzer%,"CALC:LIM5:CONT:DOM FREQ") 'Define x axis range
CALL IBWRT(analyzer%,"CALC:LIM5:CONT:MODE ABS") 'Define x axis scaling
CALL IBWRT(analyzer%,"CALC:LIM5:UNIT DB")
'Define y axis unit
CALL IBWRT(analyzer%,"CALC:LIM5:UPP:MODE REL") 'Define y axis scaling
'--------- Definition of data points and threshold -------------------------
xlimit$ = "CALC:LIM5:CONT 120MHZ,126MHZ,127MHZ,128MHZ,129MHZ,130MHz,136MHz"
CALL IBWRT(analyzer%, xlimit$)
'Set values for x axis
CALL IBWRT(analyzer%,"CALC:LIM5:UPP –70,-40,-40,-20,-40,-40,-70")
'Set values for y axis
CALL IBWRT(analyzer%,"CALC:LIM5:UPP:THR -75DBM") 'Set y threshold (only
'possible
for
relative
'y
axis)
'---------------------------------------------------------------------------
'A margin or an x /y offset can be defined here.
'----------- Activate and evaluate the limit line in screen A -------------
CALL IBWRT(analyzer%,"CALC1:LIM5:UPP:STAT ON") 'Activate line 5 in screen A
CALL IBWRT(analyzer%,"CALC1:LIM5:STAT ON")
'Activate limit check in
'screen
A
CALL IBWRT(analyzer%,"INIT;*WAI")
'Perform sweep with sync
Summary of Contents for FSMR
Page 1: ...R S FSMR Measuring Receiver Operating Manual Test Measurement Operating Manual 1313 9723 12 01...
Page 4: ......
Page 22: ......
Page 26: ...Contents Preparing for Operation R S FSMR 1155 5047 12 I 1 2 E 2 Fig 1 1 Front View...
Page 28: ...Front View R S FSMR 1166 3363 12 1 2 E 2 Fig 1 1 Front View...
Page 30: ...Front View R S FSMR 1166 3363 12 1 4 E 2 Fig 1 1 Front View...
Page 32: ...Front View R S FSMR 1166 3363 12 1 6 E 2 Fig 1 1 Front View...
Page 34: ...Front View R S FSMR 1166 3363 12 1 8 E 2 Fig 1 1 Front View...
Page 66: ......
Page 86: ......
Page 130: ...Menu Overview R S FSMR 1166 3363 12 3 42 E 3 Menu Overview another Keys MKR Key...
Page 141: ...R S FSMR Menu Overview 1166 3363 12 3 53 E 3 LOCAL Menu LOCAL...
Page 144: ......
Page 150: ......
Page 156: ......
Page 202: ......
Page 208: ......
Page 216: ......
Page 230: ......
Page 254: ......
Page 280: ......
Page 348: ......
Page 376: ...Configuration Setup R S FSMR 1166 3363 12 4 19 28 E 2...
Page 390: ......
Page 408: ......
Page 428: ......
Page 446: ......
Page 536: ......
Page 799: ......
Page 921: ......
Page 935: ......
Page 937: ...Contents Error Messages R S FSMR 1166 3363 12 I 9 2 E 1...