Remote Control
R&S
®
ESR
1021
User Manual 1175.7068.02 ─ 12
cmd$ = "CORR:TRAN:DATA" 'Enter frequency and level
cmd$ = cmd$ + "10 MHz, 0," 'values. Level values without
cmd$ = cmd$ + "100 MHz, 3," 'unit!
cmd$ = cmd$ + "1GHz, 7,"cmd$ = cmd$ + "3GHz, 10"
CALL InstrWrite (analyzer,cmd$) 'Enter frequency and level values
'--------- Activate transducer ---------------------------------------
CALL InstrWrite (analyzer, "CORR:TRAN:STAT ON")
'Activate transducer factor
END SUB
REM ************************************************************************
11.17.10
Measuring the Magnitude and Phase of a Signal
Due to the R&S
ESR's internal architecture, it is capable of measuring and outputting
the magnitude and phase of a signal in addition to its power values. This opens up a
variety of possibilities for more in-depth analysis (FFT, demodulation, etc).
I/Q data is stored in memory areas each containing 512 k words. Hardware triggering
controls the memory.
The following example shows the steps necessary to collect data at a predefined sam-
pling rate and read it from the I/Q memory.
1. Data is output in the form of voltage values referred to the analyzer input. Data can
be read in binary or ASCII format.
● In binary format, the length information carried in the message header is evalu-
ated and used for calculating the x-axis values.
● In ASCII format, only a list of voltage values is output.
2. Binary data is read in three steps:
3. The number of digits carrying the length information is read.
4. The length information itself is read.
5. The trace data is read.
This procedure is necessary with programming languages like Visual Basic which sup-
port only structures of identical data types (arrays), whereas the binary data format
uses different data types in the header and the data section.
The arrays for measured data are dimensioned in such a way that they can accommo-
date the I/Q data of the R&S
ESR (2 × 512 k).
REM ************************************************************************
Public Sub ReadIQData()
'--------- Create variables -----------------------------------------------
Dim IData(131072) As Single 'Buffer for floating-point
'I data (= 512*1024 bytes)
Dim QData(131072) As Single 'Buffer for floating-point
Remote Control – Programming Examples