
Quick Start Guide 1313.9652.62 - 02
7.15
R&S FSQ
Brief Introduction to Remote Control
Detailed Programming Examples
7.2.2 Using Markers and Delta Markers
7.2.2.1 Marker Search Functions, Restricting the Search Range
The following example is based on an AM-modulated signal at 100 MHz that has the following
characteristics:
• Carrier signal level: –30 dBm
• AF frequency: 100 kHz
• Modulation depth: 50%
Marker 1 and then delta marker 2 are set to the largest maximum points on the trace. The
frequency and level are then read. In the following measurements, the instrument's default
setting can be used for measurements (SetupInstrument).
REM ************************************************************************
Public Sub MarkerSearch()
Dim status As ViStatus
Dim retCnt As Long
result$ = Space$(100)
Call SetupInstrument
'Default Setting
REM ------ Peak search without search range limits--------------------------
status = viWrite(analyzer, "INIT:CONT OFF", 13, retCnt)
'Switch to single sweep
status = viWrite(analyzer, "CALC:MARK:PEXC 6DB", 18, retCnt)
'Define peak excursion
status = viWrite(analyzer, "CALC:MARK:STAT ON", 17, retCnt)
'Enable marker 1
status = viWrite(analyzer, "CALC:MARK:TRAC 1", 16, retCnt)
'Set marker 1 to trace 1
status = viWrite(analyzer, "INIT;*WAI", 9, retCnt)
'Perform sweep with sync
status = viWrite(analyzer, "CALC:MARK:MAX;X?;Y?", 19, retCnt)
'Marker to peak; read frequency and level
status = viRead(analyzer, result$, 100, retCnt)
Print "Marker 1: "; result$
status = viWrite(analyzer, "CALC:DELT2:STAT ON;MAX;MAX:LEFT", 31, retCnt)
'Activate delta marker 2, set to peak and then to next peak left
status = viWrite(analyzer, "CALC:DELT2:X?;Y?", 16, retCnt)
'Read delta marker 2 frequency and level
status = viRead(analyzer, result$, 100, retCnt)
Print "Delta 2: "; result$
REM ------ Peak search with search range limit in x direction --------------
status = viWrite(analyzer, "CALC:MARK:X:SLIM:STAT ON;LEFT 0Hz;RIGHt 100.05MHz", 49,
retCnt)
'Activate search limit and set at right below AF
status = viWrite(analyzer, "CALC:DELT3:STAT ON;MAX;MAX:RIGHt", 32, retCnt)
'Activate delta marker 3, 'set to peak and then to next peak right
status = viWrite(analyzer, "CALC:DELT3:X:REL?;:CALC:DELT3:Y?", 32, retCnt)
Содержание FSQ series
Страница 1: ...R S FSQ Signal Analyzer Quick Start Guide Quick Start Guide Test Measurement 1313 9652 62 02 ...
Страница 28: ...R S FSQ 0 4 Quick Start Guide 1313 9652 62 02 ...
Страница 50: ...R S FSQ Front and Rear Panel Rear Panel Connections 1 22 Quick Start Guide 1313 9652 62 02 ...
Страница 110: ...R S FSQ Basic Operation Setting Parameters 4 12 Quick Start Guide 1313 9652 62 02 ...
Страница 209: ...Quick Start Guide 1313 9652 62 02 R S FSQ Appendix Appendix ...
Страница 210: ...Quick Start Guide 1313 9652 62 02 R S FSQ Appendix ...
Страница 220: ...R S FSQ Appendix Installing Non Plug Play Printers A 10 Quick Start Guide 1313 9652 62 02 ...