
Operating Manual 1164.4556.12 - 06
7.17
R&S FSP
Remote Control – Programming Examples
More Complex Programming Examples
status = viRead(analyzer, result$, 100, retCnt)
Print result$
END SUB
REM ************************************************************************
7.3.5
Time Domain Power Measurement
In the following example, the mean carrier power of a signal with 300 kHz bandwidth
at 100 MHz is to be determined. In addition, the peak power, the rms value and the
standard deviation are measured. To do this, the time-domain-power measurement
functions are used.
REM ************************************************************************
Public Sub TimeDomainPower()
result$ = Space$(100)
'--------- R&S FSP default setting --------------------------
CALL SetupStatusReg
'Set status register
status = viWrite(analyzer, "*RST", 4, retCnt)
'Reset instrument
status = viWrite(analyzer, "INIT:CONT OFF", 13, retCnt)
'Single sweep
status = viWrite(analyzer, "SYST:DISP:UPD ON", 16, retCnt)
'ON: display on
'OFF: off
'---- Configure R&S FSP for time domain power measurement ---
status = viWrite(analyzer, "FREQ:CENT 100MHz;SPAN 0Hz", 25, retCnt)
'Set frequency
status = viWrite(analyzer, "BAND:RES 300kHz", 15, retCnt)
'Resolution bandwidth
status = viWrite(analyzer, "SWE:TIME 200US", 14, retCnt)
'Sweep time
status = viWrite(analyzer, "CALC:MARK:FUNC:SUMM:PPE ON", 26, retCnt)
'Peak measurement on
status = viWrite(analyzer, "CALC:MARK:FUNC:SUMM:MEAN ON", 27, retCnt)
'Mean measurement on
status = viWrite(analyzer, "CALC:MARK:FUNC:SUMM:RMS ON", 26, retCnt)
'RMS measurement on
status = viWrite(analyzer, "CALC:MARK:FUNC:SUMM:SDEV ON", 27, retCnt)
'Standard deviation on
'--------- Perform measurement and query results ------------
status = viWrite(analyzer, "INIT;*WAI", 9, retCnt)
'Perform sweep with sync
'Query results:
query$ =
" CALC:MARK:FUNC:SUMM:PPE:RES?;"
'Peak measurement
query$ = query$ + ":CALC:MARK:FUNC:SUMM:MEAN:RES?;"
'Mean measurement
query$ = query$ + ":CALC:MARK:FUNC:SUMM:RMS:RES?;"
Summary of Contents for R&S FSP Series
Page 1: ...R S FSP Spectrum Analyzer Operating Manual 1164 4556 12 06 Test Measurement Operating Manual ...
Page 24: ...R S FSP Putting into Operation 1 2 Operating Manual 1164 4556 12 06 ...
Page 72: ...R S FSP Manual Operation 3 2 Operating Manual 1164 4556 12 06 ...
Page 793: ...R S FSP Index Operating Manual 1164 4556 12 06 4 11 ...
Page 794: ...R S FSP 4 12 Operating Manual 1164 4556 12 06 ...
Page 795: ...Operating Manual 1164 4556 12 06 4 13 R S FSP ...
Page 796: ...R S FSP 4 14 Operating Manual 1164 4556 12 06 ...