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
Содержание FSMR
Страница 1: ...R S FSMR Measuring Receiver Operating Manual Test Measurement Operating Manual 1313 9723 12 01...
Страница 4: ......
Страница 22: ......
Страница 26: ...Contents Preparing for Operation R S FSMR 1155 5047 12 I 1 2 E 2 Fig 1 1 Front View...
Страница 28: ...Front View R S FSMR 1166 3363 12 1 2 E 2 Fig 1 1 Front View...
Страница 30: ...Front View R S FSMR 1166 3363 12 1 4 E 2 Fig 1 1 Front View...
Страница 32: ...Front View R S FSMR 1166 3363 12 1 6 E 2 Fig 1 1 Front View...
Страница 34: ...Front View R S FSMR 1166 3363 12 1 8 E 2 Fig 1 1 Front View...
Страница 66: ......
Страница 86: ......
Страница 130: ...Menu Overview R S FSMR 1166 3363 12 3 42 E 3 Menu Overview another Keys MKR Key...
Страница 141: ...R S FSMR Menu Overview 1166 3363 12 3 53 E 3 LOCAL Menu LOCAL...
Страница 144: ......
Страница 150: ......
Страница 156: ......
Страница 202: ......
Страница 208: ......
Страница 216: ......
Страница 230: ......
Страница 254: ......
Страница 280: ......
Страница 348: ......
Страница 376: ...Configuration Setup R S FSMR 1166 3363 12 4 19 28 E 2...
Страница 390: ......
Страница 408: ......
Страница 428: ......
Страница 446: ......
Страница 536: ......
Страница 799: ......
Страница 921: ......
Страница 935: ......
Страница 937: ...Contents Error Messages R S FSMR 1166 3363 12 I 9 2 E 1...