
R&S ESU
Remote Control – Programming Examples
More Complex Programming Examples
7.18
Operating Manual 1302.6163.12 - 03
'OFF: switch off
'ON: switch on
'--------- Perform measurement and query results ---------------------------
status = viWrite(analyzer, "INIT;*WAI", 9, retCnt)
'Perform sweep with sync
status = viWrite(analyzer, "CALC:MARK:FUNC:POW:RES? OBW", 27, retCnt)
'Query result
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 ESU default setting --------------------------
CALL SetupStatusReg
'Set status register
status = viWrite(analyzer, "*RST", 4, retCnt)
'Reset instrument
status = viWrite(analyzer, "INST:SEL SAN", 12, retCnt)
'Change into analyzer mode
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 ESU 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
Summary of Contents for 1129.7246.03
Page 1: ...R S ESU EMI Test Receiver Operating Manual 1302 6163 12 03 Test Measurement Operating Manual ...
Page 25: ......
Page 27: ...R S ESU Putting into Operation 1 2 Operating Manual 1302 6163 12 03 ...
Page 29: ...R S ESU Getting Started 2 2 Operating Manual 1302 6163 12 03 ...
Page 31: ...R S ESU Manual Operation 3 2 Operating Manual 1302 6163 12 03 ...
Page 349: ...R S ESU Instrument Functions Basic Settings 4 318 Operating Manual 1302 6163 12 03 ...
Page 405: ...R S ESU Instrument Functions User Port 4 374 Operating Manual 1302 6163 12 03 ...
Page 439: ...R S ESU Remote Control Basics Status Reporting System 5 34 Operating Manual 1302 6163 12 03 ...
Page 841: ...R S ESU Error Messages Device Specific Messages 9 10 Operating Manual 1302 6163 12 03 ...
Page 854: ...Operating Manual 1302 6163 12 03 10 13 R S ESU ...
Page 855: ...R S ESU 10 14 Operating Manual 1302 6163 12 03 ...