Specifications
Chapter 18 297
PSA Programming Examples
Using C with the CALCulate:DATA:COMPress? RMS Command
PSA Programming Examples
Using C with the CALCulate:DATA:COMPress?
RMS Command
This C programming example (calcomp.c) can be found on the
Documentation CD.
This program uses the CALCulate:DATA:COMPress? RMS command to
average the voltage trace data to calculate power of consecutive GSM
bursts. Older instrument firmware does not support the newer DME
parameter described in the previous example. You will have to use the
technique in this example to calculate the dB mean. This example uses
the Waveform measurement in the Basic mode. Basic mode is optional
-B7J- in the PSA Series spectrum analyzers and is standard in the
E4406A Vector Signal Analyzer.
The CALC:DATA2:COMP? RMS command is used to return the power of 1
to 150 consecutive GSM/EDGE bursts. The RMS parameter returns the
average of the voltage trace values. These measured values are then
converted to dBm values.
This program also demonstrates how to serial poll Serial poll the
instrument to determine when the Message Available status bit is set.
/**************************************************************************
calcomp.c
* Agilent Technologies 2001
*
* This program demonstrates the process of using the Waveform
* measurement and the CALC:DATA0:COMP? RMS command to return the power
* of 1 to 450 consecutive GSM/EDGE bursts (one burst per frame).
* The data results are placed in an ASCII file, C:\calccomp.txt
*
* Instrument Requirements:
* E444xA with option B7J and firmware version >= A.02.00 or
* E4406A with firmware version >= A.05.00 or
*
* Signal Source Setup:
* Turn on 1 slot per GSM/EDGE frame.
* Set frame repeat to Continous.
* Set the signal amplitude to -5 dBm.
* Set the signal source frequency to 935.2 MHz
*