This document presents a simple procedure for network analysis that is more cost-effective than the use of scalar network analyzers. It allows the accurate measurement of the transmission characteristics of filters, amplifiers and frequency converters over a large frequency and dynamic range. In order to reach very high measurement speeds, Rohde & Schwarz signal generators are operated in “List Mode”, and Rohde & Schwarz power meters are operated in “Buffered Mode.” The required programming for the signal generator and the power meter is illustrated by excerpts from a Visual Basic program which is available, free of charge, uFast Scalar Network Analysis 1MA101_0e 2 Rohde & Schwarz Contents 1 Overview…………………………………………………………………………………………. 3 2 Measuring Procedure ……………………………………………………………………….. 4 List Mode in the signal generator………………………………………….. 4 Buffered Mode in the power meter ……………………………………….. 5 Possible variations……………………………………………………………… 5 Limits and limitations ………………………………………………………….. 7 3 Test Setup ………………………………………………………………………………………. 8 Setup with NRP/NRP-Z3, controlled via the NRP base unit……… 9 Triggering with a blanking signal ………………………………………… 10 4 Command Sequences for Various Configurations ………………………………. 11 Instrument setup …………………………………………………………………… 11 Setting the SMA/SMJ/SMU and loading a frequency/level list: .. 12 Setting the SMR and loading a frequency/level list: ………………. 13 Setting the NRP+NRP-Z21: ……………………………………………….. 14 Setting the NRP-Z21/Z3 (USB adapter): ……………………………… 14 Starting the Measuring Sequence …………………………………………… 15 Using the SMA/SMJ/SMU or SMR signal generator, and measurement with NRP and NRP-Z21 via the GPIB bus interface: ………………………………………………………………………………………. 15 Using the SMA/SMJ/SMU or SMR signal generator, and measurement with NRP-Z21/NRP-Z3 via the USB interface: …. 16 5 User Interface of the Demo Program and Recording the Measuring Speed 17 Measurements with the SMA: …………………………………………………. 17 Measurements with the SMR:…………………………………………………. 19 6 References ……………………………………………………………………………………. 20 7 Additional Information……………………………………………………………………… 20 8 Ordering Information……………………………………………………………………….. 21 Fast Scalar Network Analysis 1MA101_0e 3 Rohde & Schwarz 1 Overview The transmission characteristics of RF components such as filters, amplifiers, or frequency converters are normally measured with a scalar network analyzer or a spectrum analyzer with tracking generator. If none is available, scalar measurements can also be carried out using an RF signal generator, a power meter and an external control program. The high speed required for scalar network analysis is achieved by utilizing the List Mode available in Rohde & Schwarz signal generators, and the Rohde & Schwarz power meter’s Buffered Mode. This document contains a basic description of the procedure and the required programming commands. A free VB sample program is available upon request. This simple and very cost-effective setup may be used to accurately measure transmission characteristics over a large frequency and dynamic range. Such a setup could well be useful for applications in a production environment where fast, reproducible and cost-effective measurement applications are important. Typical applications: Typical applications for the scalar network analysis procedure include the following: • Characterizing components in amplifiers, filters, and converters This procedure is especially useful for conducting measurements on converters such as satellite TV converters. Unlike the selective measurements performed by a network analyzer, power meter measurements are broadband, and an unstable local oscillator frequency will not adversely affect measurement accuracy. • Balancing and documenting the transmission characteristics of filters • Calibrating measurement setups Complicated setups for measurements of, e.g., spurious up to 12.75 GHz in line with popular mobile communications standards (GSM, WCDMA) usually include filters, attenuators, and cables whose frequency response must be known. • Determining the compression point in amplifiers The List Mode available in Rohde & Schwarz signal generators can also be used in conjunction with the power meter to conduct a fast power sweep in order to measure compression behavior in amplifiers, for example. Fast Scalar Network Analysis 1MA101_0e 4 Rohde & Schwarz The following abbreviations are used when referring to Rohde & Schwarz test equipment: • The R&S® SMU200A, SMATE200A, and SMJ100A vector signal generators are referred to as SMU200A, SMATE200A, and SMJ100A • The R&S® SMR microwave signal generator is referred to as SMR • The Power Meter R&S® NRP is referred to as NRP • The R&S® NRP-Z11, NRP-Z21, NRP-Z22, NRP-Z23, and NRPZ24 power sensors are referred to as NRP-Z11, NRP-Z21, NRPZ22, NRP-Z23, and NRP-Z24. 2 Measuring Procedure An RF signal generator with List Mode is used as the stimulator for fast scalar measurements. The SMA, SMATE, SMU und SMJ RF signal generators and the SMR family of microwave signal generators from Rohde & Schwarz can be used for this purpose. Measurements are taken by a power meter with diode sensor, which can be operated in Buffered Mode, for instance the NRP-Z11/-Z21/-Z22/-Z24/- Z24 power sensors from Rohde & Schwarz which cover a frequency range from 10 MHz to 18 GHz. The power measurement range of the NRP-Z11 and the NRP-Z21 is -67 dBm to +23 dBm, which means that in extreme cases, it is possible to achieve a dynamic range of up to 90 dB. For power ranges greater than +23 dBm, the user has the option of using one of the NRP-Z22/-Z23/-Z24 power sensors which have a preceding calibrated power attenuator and support a higher absolute power level. Optionally, the NRP power sensors can also be controlled directly via the USB port of a PC, without requiring the power meter base unit itself. Also required is a controller with either a GPIB or LAN interface (with one exception: the SMR does not have a LAN interface and must be controlled via GPIB bus). Depending on which generator is used, the measurement time is only approx. 2 ms to 4 ms per frequency point, including transmit delay. The power sensor buffer can store up to 1024 measured values and then transmit them as a block. By comparison, conventional solutions require a measuring time of approx. 20 ms per frequency point. List Mode in the signal generator Rohde & Schwarz signal generators offer a special operating mode, called List Mode. This mode supports especially fast frequency and level setting times, which is accomplished by first creating a list of the various frequencies and levels in the controller. The list is then transmitted to the signal generator via the remote control interface. When the generator learns the list, i.e. when the list is started for the first time, it calculates and stores the required internal hardware settings for all frequency/level points. That means that in subsequent starts, the frequency/level list can be processed much faster than with conventional programming. The signal generator’s List Mode allows arbitrary spacing of the individual measurement points; for instance, the frequency points in a filter’s passband can be spaced more closely than in the stopband, or a logarithmically-spaced “sweep” can be created. Fast Scalar Network Analysis 1MA101_0e 5 Rohde & Schwarz The List Mode can also be used to conduct a power sweep in order to measure the compression point of an amplifier. The run time of the frequency list and thus the ultimately achievable measuring speed is primarily determined by the frequency setting time for the generator and the required dwell time. The lower limit of the dwell time is determined by the measuring time required for the power meter and/or power sensor. Buffered Mode in the power meter The counterpart to the List Mode provided by Rohde & Schwarz signal generators is the Buffered Mode offered by the NRP power meter and the NRP-Z11/-Z21/-Z22/-Z23-/-Z24 power sensors, which allows very fast level measurements. After the start command is sent, a measured value is recorded for each external trigger and buffered internally in the power sensor. Up to 1024 values can be buffered. The negative edge of the generator’s blanking signal is used as the trigger which indicates that a frequency change, or, in the case of a power sweep, a level change has taken place. That also synchronizes the generator setting and the capture of the measured value. The measuring time required by the power meter is dependent on the preset trigger delay, the aperture time, and the time required for internal processing of the measured value. In practice, the shortest dwell time of 1.5 ms, coupled with an aperture time of 0.1 ms and a trigger delay of 0.1 ms, has proven useful. (Note: The power sensor requires twice the aperture time because the internal chopper amplifier is switched over.) When the measuring sequence is completed, the measured values are transmitted from the sensor buffer to the controller, and the sample program displays them in a text box and saves them to a text file. Then the data can be processed or displayed with other programs such as Excel. The SMA, SMATE, SMJ, or SMU can thus achieve a total measuring time of 200 ms for 100 measuring points, including transmission to the controller. For the SMR, the corresponding total measuring time is approx. 400 ms, which is due to the slightly longer frequency setting time. Possible variations The NRP-Z sensors can also be operated as standalone units, without the NRP base unit. The integrated microcontroller has signal processing capabilities and can transmit the data to the controller via the USB port. That makes the solution even more cost-effective. However, the base unit is required if a direct display of the measured values is desired, although the Power Viewer software for Windows, which is included in the NRP-Z series, can be used for this. Alternatively, users may also use the NRPVIEW application software (see Application Note 1MA77). Fast Scalar Network Analysis 1MA101_0e 6 Rohde & Schwarz Since triggering is required for the measuring sequence described above, the R&S NRP-Z3 active USB adapter is required in addition to the power sensor. The USB adapter is equipped with a BNC connector that routes an external trigger signal to the power sensor. Fig. 1: Basic test setup for scalar network analysis with a signal generator, power sensor and a lowpass as the DUT Fast Scalar Network Analysis 1MA101_0e 7 Rohde & Schwarz Limits and limitations The procedure described in this document allows fast and accurate scalar measurements in a wide frequency and dynamic range and is thus sufficient for many applications. Compared to a scalar network analyzer, the costs are lower by a factor of 2 or 3. The possible maximum frequency range depends on the equipment used and ranges from a lower limit of 10 MHz to an upper limit of 18 GHz. This is the frequency range for the NRP-Z21/22/23/24 power sensors. The achievable upper frequency limit depends on the generator. On the SMA, SMJ, or SMU, the maximum frequency can be set to 3 GHz or 6 GHz, depending on the chosen frequency option. For the SMR microwave signal generator, the upper frequency limit goes up to 60 GHz. Compared to selective measurements with a network analyzer, the dynamic range is limited due to the broadband measurement with the power sensor. The NRP-Z21 has a level range of -67 dBm to +23 dBm. At a level of -33 dBm and an aperture time of 2 x 0.1 ms, it guarantees a display noise (2x standard deviation) of < 0.16 dB; typical values are approx. < 0.1 dB [1]. The relative display noise increases at lower levels, but that can be offset to a certain extent by a longer aperture time and a corresponding increase in dwell time. However, that does result in a longer measuring time. Scalar measurements are always compared to a reference measurement (the sensor is connected directly to the generator output). In Buffered Mode, sensor errors do not have a negative effect because of the inactive internal frequency response correction. The program can be used with any Rohde & Schwarz RF signal generator that supports List Mode, i.e. SMA, SMATE, SMJ, SMU, and SMR, but not with the economy models SML, SMV, or SM300. As the objective is to achieve a high measuring speed, it is not possible to use thermal sensors, but only the fast NRP-Z11, -Z21, -Z22, -Z23, -Z24 diode sensors, which support Buffered Mode. Fast Scalar Network Analysis 1MA101_0e 8 Rohde & Schwarz 3 Test Setup The setup is the same for all generators; the only difference is whether the measurements are performed with the combination of an NRP power meter and a power sensor, or whether the power sensor and the NRP-Z3 USB adapter are used. Setup with NRP-Z21/NRP-Z3, controlled via USB adapter Fig. 2: Setup for a scalar network analysis in the 10 MHz to 18 GHz range with SMR and NRP-Z21/NRP-Z3, controlled via USB adapter Fast Scalar Network Analysis 1MA101_0e 9 Rohde & Schwarz Setup with NRP/NRP-Z3, controlled via the NRP base unit Fig. 3: Setup for a scalar network analysis in the 10 MHz to 3 or 6 GHz range with SMA100A, NRP, and NRP-Z21, controlled via GPIB bus or LAN interface Fast Scalar Network Analysis 1MA101_0e 10 Rohde & Schwarz Triggering with a blanking signal In order for the measurement value to be recorded synchronously with the signal generator’s frequency sweep, it is critical that the power meter or power sensor be triggered with the generator’s blanking signal. The following indicates the locations of the outputs which provide the blanking signal of the respective generators required for triggering the power meter base unit and/or the power sensor. The outputs are located on the rear panel of the device: • On the SMR, it is pin 2 in the AUX port Fig. 4: Blanking signal at the AUX port on the rear panel of the SMR (pin 2), for triggering the NRP and/or the NRP-Z3 • On the SMU and the SMJ, it is in the USER1 connector (when programmed accordingly; the GPIB command is “OUTP:USER1:SOUR ABL”) Fig. 5: USER1 connector on the rear panel of the SMU or SMJ (the GPIB command to program the port as the blanking signal output is “OUTP:USER1:SOUR ABL”) Fast Scalar Network Analysis 1MA101_0e 11 Rohde & Schwarz • The SMA is equipped with a designated BNC output Fig. 6: Blanking signal output on the SMA100A 4 Command Sequences for Various Configurations In each of the following VB 6.0 examples, a list of 100 frequency and level points is transmitted to the generator, and the points are then measured. Signal generator and power meter are preset with the “Setup Instruments” command; cf. section Instrument setup. The measurements are started and continuously repeated with the “Start Measurement Sequence” command; cf. section Starting the measuring sequence. Note: These VB program excerpts illustrate how Rohde & Schwarz equipment is programmed for List Mode and Buffered Mode and how the measured values are read. An executable demo program is available upon request from TM-Applications@rsd.rohde-schwarz.com; cf. chapter 7, “Additional Information.” Instrument setup The program first sets the signal generator on the basis of the Preset state. Then a frequency/level list is created with the number of points (in the default state, 100 points in the 10 MHz to 3 GHz frequency range) and transmitted to the generator. Now the generator is switched to List Mode with the corresponding parameters, and a single run of the list is executed. The power meter or power sensor is set on the basis of the Preset state and then switched to Buffered Mode with the corresponding parameters. Fast Scalar Network Analysis 1MA101_0e 12 Rohde & Schwarz Setting the SMA/SMJ/SMU and loading a frequency/level list: VB6 Command Function FSTART = 10e6 FSTOP = 3E9 N_points = 100 MAXINDEX = Str$(N_points – 1) FSTEP = (FSTOP – FSTART) / (N_points – 1) SMA.WriteString “SYST:PRES” SMA.WriteString “OUTP:AMOD FIX” SMA.WriteString “OUTP:STAT ON” SMA.WriteString “SOUR:POW:LEV:IMM:AMPL 0” FBuffer = vbNullString LBuffer = vbNullString For cnt = 0 To N_points – 1 Freq = FSTART + (cnt * FSTEP) FBuffer = FBuffer + Trim$(Str$( Freq)) + “Hz,” LBuffer = LBuffer + Trim$(Str$(0)) + “dBm,” Next cnt ‘size FBuffer, LBuffer must be >= NRPZ buffer size FBuffer = Left$(FBuffer, Len(FBuffer) – 1) LBuffer = Left$(LBuffer, Len(LBuffer) – 1) SMA.WriteString “SOUR:LIST:SEL ‘LIST0′” SMA.WriteString “SOUR:LIST:FREQ ” + FBuffer SMA.WriteString “SOUR:LIST:POW ” + LBuffer SMA.WriteString “SOUR:LIST:MODE AUTO” SMA.WriteString “SOUR:LIST:DWEL 1.5 ms” SMA.WriteString “SOUR:FREQ:MODE LIST” SMA.WriteString “SOUR:LIST:TRIG:SOUR SING” ‘SMA.WriteString “OUTP:USER1:SOUR ABL SMA.WriteString “SOUR:LIST:IND:STAR 0” SMA.WriteString “SOUR:LIST:IND:Stop ” + MAXINDEX SMA.WriteString “SOUR:LIST:TRIG:EXEC” Start frequency 10 MHz Stop frequency 3 GHz 100 list points Calculate step size Preset Fixed attenuator setting RF output on Level setting 0 dBm Create frequency/level list Eliminate last “,” Select LIST0 Fill frequency list Fill level list Auto list mode Dwell time = 1.5 ms Switch on List Mode Single run of list Only for SMU/SMJ: blanking signal to USER 1 output List start index 0 List stop index = MAXINDEX Start single run of list Fast Scalar Network Analysis 1MA101_0e 13 Rohde & Schwarz Setting the SMR and loading a frequency/level list: VB6 Command Function FSTART = 10e6 FSTOP = 3E9 N_points = 100 MAXINDEX = Str$(N_points – 1) FSTEP = (FSTOP – FSTART) / (N_points – 1) SMR.WriteString “SYST:PRES” SMR.WriteString “OUTP:AMOD FIX” SMR.WriteString “OUTP:STAT ON” SMR.WriteString “SOUR:POW:LEV:IMM:AMPL 0” FBuffer = vbNullString LBuffer = vbNullString For cnt = 0 To N_points – 1 Freq = FSTART + (cnt * FSTEP) FBuffer = FBuffer + Trim$(Str$( Freq)) + “Hz,” LBuffer = LBuffer + Trim$(Str$(0)) + “dBm,” Next cnt FBuffer = Left$(FBuffer, Len(FBuffer) – 1) LBuffer = Left$(LBuffer, Len(LBuffer) – 1) SMR.WriteString “SOUR:LIST:SEL ‘LIST0′” SMR.WriteString “SOUR:LIST:FREQ ” + FBuffer SMR.WriteString “SOUR:LIST:POW ” + LBuffer SMR.WriteString “SOUR:LIST:MODE AUTO” SMR.WriteString “SOUR:LIST:DWEL 1.5 ms” SMR.WriteString “SOUR:FREQ:MODE LIST” SMR.WriteString “SOUR:LIST:TRIG:SOUR SING” SMR.WriteString “:TRIG:LIST” Start frequency 10 MHz Stop frequency 3 GHz 100 list points Calculate step size Preset Fixed attenuator setting RF output On Level setting 0 dBm Create frequency/level list Eliminate last “,” Select LIST0 Fill frequency list Fill level list Auto list mode Dwell time = 1.5 ms Switch on List Mode Single run of list Start single run of list Fast Scalar Network Analysis 1MA101_0e 14 Rohde & Schwarz Setting the NRP+NRP-Z21: VB6 Command Function NRP.WriteString “SYST:PRES” NRP.WriteString “SYST:SPEED FAST” NRP.WriteString “init1:cont off” NRP.WriteString “SENS:Aver:STATE Off” NRP.WriteString “SMO:STATE OFF” NRP.WriteString “SENS:AVER:COUNT:AUTO OFF” NRP.WriteString “SENS:AVER:COUNT 1” NRP.WriteString “SENS1:POW:AVG:APER 0.1ms” NRP.WriteString “Trig:Sour Ext” NRP.WriteString “TRIG:SLOP NEG” NRP.WriteString “TRIG:del .1ms” NRP.WriteString “TRIG:COUNT 100” NRP.WriteString “SENS:POW:AVG:BUFF:SIZE 100” NRP.WriteString “SENS:POW:AVG:BUFF:State ON” Preset Display off for max. speed Continuous meas. off Averaging off Smoothing off Auto average count off Average count 1 Aperture time 0.1 External trigger Negative trigger slope Trigger delay 0.1 ms Number of meas. cycles Buffer size = 100 Switch on buffered mode Setting the NRP-Z21/Z3 (USB adapter): VB6 Command Function Call rsnrpz_init(“*”, 1, 1, Handle) Call rsnrpz_chan_reset (Handle, 1) Call rsnrpz_chan_setInitContinuousEnabled(Handle, 1, 0) Call rsnrpz_avg_setAutoEnabled(Handle, 1, 0) Call rsnrpz_chan_setContAvSmoothingEnabled(Handle, 1, 0) Call rsnrpz_avg_setAutoEnabled(Handle, 1, 0) Call rsnrpz_trigger_setCount(Handle, 1, 1) Call rsnrpz_chan_setContAvAperture(Handle, 1, 0.0001) Call rsnrpz_trigger_setSource(Handle, 1, 4) Call rsnrpz_trigger_setSlope(Handle, 1, 1) Call rsnrpz_ trigger _setDelay (Handle, 1, 0.0001) Call rsnrpz_trigger_setCount(Handle, 1, 100) Call rsnrpz_chan_setContAvBufferSize(Handle, 1, 100) Call rsnrpz_chan_setContAvBufferedEnabled(Handle, 1, 1) Preset Sensor reset Continuous meas. off Averaging off Smoothing off Auto average count off Average count 1 Aperture time 0.1ms External trigger Negative trigger slope Trigger delay 0.1 ms Number of meas. cycles Buffer size = 100 Switch on buffered mode Fast Scalar Network Analysis 1MA101_0e 15 Rohde & Schwarz Starting the Measuring Sequence When the measuring sequence is started, the command “INIT:IMM” starts the measuring process in the NRP. After a delay of 2 ms, the NRP is ready to record measured values, externally triggered, depending on the buffer size (100 in the default state). Execution of the frequency list is started with the EXECUTE LIST command. After the generator has been set to a frequency point on the list, a trigger for the power meter or power sensor is sent via the BLANK output. Afterwards, the contents of the buffer are read with a “Fetch?” command. Using the SMA/SMJ/SMU or SMR signal generator, and measurement with NRP and NRP-Z21 via the GPIB bus interface: VB6 Command Function NRP.WriteString “Init:IMM” Sleep 2 SMA.WriteString “SOUR:LIST:TRIG:EXEC;*WAI” NRP.ReadString “*opc?”, OPCBuffer NRP.ReadString “Fetch?”, Result, 10000 Start meas. sequence Sleep 2 ms Execute list on SMA* Wait until operation complete Read result string *) Command for the SMA, SMJ, SMU. For the SMR, the corresponding command is “:TRIG:LIST;*WAI” Fast Scalar Network Analysis 1MA101_0e 16 Rohde & Schwarz Using the SMA/SMJ/SMU or SMR signal generator, and measurement with NRP-Z21/NRP-Z3 via the USB interface: Command Function ReadPower X, Result Public Sub ReadPowerBuffer(ByRef Handle As ViSession, ByRef Reading() As Double, ByVal N_points As Integer, ByVal SMA As VIF) Dim Err As ViStatus Dim Status As ViBoolean Dim Number As Long Dim Index As Integer rsnrpz.rsnrpz_chans_initiate (Handle) sleep 2 SMA.WriteString “SOUR:LIST:TRIG:EXEC:*WAI” Do rsnrpz.rsnrpz_chan_isMeasurementComplete Handle, 1, Status Loop Until Status = VI_TRUE ReDim Reading(0 To 99) rsnrpz.rsnrpz_meass_fetchBufferMeasurement Handle, 1, 100, Reading(0), Number For Index = LBound(Reading) To UBound(Reading) Reading(Index) = Log(Abs(Reading(Index))) / Log(10) Reading(Index) = (10 * Reading(Index)) + 30 Next Index End Sub Run subroutine Subroutine ReadPower Start sensor measurement Sleep 2 ms until sensor is ready for trigger Execute list on SMA * Wait until measurement is complete Fetch buffer data (100 values) Convert W to dBm *) Command for the SMA, SMJ, SMU. For the SMR, the corresponding command is “:TRIG:LIST;*WAI” Fast Scalar Network Analysis 1MA101_0e 17 Rohde & Schwarz 5 User Interface of the Demo Program and Recording the Measuring Speed The input values are: start frequency, stop frequency and number of points. As soon as the user clicks on SETUP INSTRUMENTS, these values are used to calculate an appropriate, constant step size, and a frequency/level list is generated and sent to the signal generator. Also, the signal generator and the power sensor are preset to List Mode and Buffered Mode, respectively. The measuring process is activated by pressing START MEAS SEQUENCE. The large pane on the right shows index, frequency, and the measured level. In addition, the total measuring time (Total Meas. Time/ms) is displayed in the small field on the lower left side of the screen. Measurements with the SMA: With the SMA, the total time required to measure 100 points is approx. 200 ms; cf. the results displayed in the small field on the lower left side of the screen (as shown in Fig. 7). Fast Scalar Network Analysis 1MA101_0e 18 Rohde & Schwarz . Fig. 7: User interface of a demo program for scalar network analysis with SMA and NRP-Z21, and recorded measuring speeds Fast Scalar Network Analysis 1MA101_0e 19 Rohde & Schwarz Measurements with the SMR: For the SMR, the total time required to measure 100 points is approx. 390 ms. Fig. 8: User interface of a demo program for scalar network analysis with SMR and NRP-Z21, and recorded measuring speeds Fast Scalar Network Analysis
Loading...
Leave A Comment
You must be logged in to post a comment.