Specifications
Chapter 18 291
PSA Programming Examples
Using C to Make a Power Calibration Measurement for a GSM Mobile
Handset
PSA Programming Examples
Using C to Make a Power Calibration
Measurement for a GSM Mobile Handset
This C programming example (powercal.c) can be found on the
Documentation CD.
This program uses Basic mode which is optional -B7J- in the PSA
Series spectrum analyzers and is standard in the E4406A Vector Signal
Analyzer. It uses the Waveform measurement with the
CALC:DATA2:COMP? DME command to return the power of 75
consecutive GSM/EDGE bursts. The DME (dB Mean) parameter
returns the average of the dB trace values. The DME parameter is only
available in later version of instrument firmware
≥ A.05.00 for PSA and
≥ A.07.00 for VSA. Earlier instruments see the “Using C with the
CALCulate:DATA:COMPress? RMS Command” example.
This program also demonstrates how to serial poll the "Waiting for
Trigger" status bit to determine when to initiate the GSM phone. The
data results are placed in an ASCII file (powercal.txt).
The program can also be adapted to perform W-CDMA Downlink Power
Control measurements in the code domain power Symbol Power view.
In essence, you can average any stepped power measurement trace
using this method.
/********************************************************************************
* powercal.c
* Agilent Technologies 2003
*
* This program demonstrates the process of using the Waveform
* measurement and the CALC:DATA2:COMP? DME command to return the power
* of 75 consecutive GSM/EDGE bursts.
* The DME (db Mean) parameter returns the average of the dB trace values.
*
* This program also demonstrates how to serial poll the "Waiting
* for Trigger" Status bit to determine when to initiate the GSM phone
* The data results are placed in an ASCII file, powercal.txt
*
* This program can also be adapted to perform W-CDMA Downlink PowerControl
* measurements in the Code Domain Power Symbol Power View. In essence,
* you can average any stepped power measurement trace using this method.
*