Specifications
292 Chapter 18
PSA Programming Examples
Using C to Make a Power Calibration Measurement for a GSM Mobile
Handset
PSA Programming Examples
* Instrument Requirements:
* E444xA with option B7J and firmware version >= A.05.00 or
* E4406A with firmware version >= A.07.00 or
*
* Signal Source Setup:
* Set up GSM/EDGE frame for either 1, 2, 4, or eight slots per frame.
* When configuring two slots per frame, turn on slots 1 and 5
* When configuring four slots per frame, turn on slots 1,3,5, and 7.
* Set frame repeat to Single.
* Set the signal amplitude to -5 dBm.
* Set the signal source frequency to 935.2 MHz
*
* CALC:DATA2:COMP? DME parameters:
* soffset = 25us (This avoids averaging data points when the burst
* is transitioning on.)
* length = 526us (Period over which the power of the burst is averaged)
* roffset = 4.6153846 ms / slots per frame (Repitition interval of burst)
**********************************************************************************
****/
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <math.h>
#include "c:\program files\visa\winnt\include\visa.h"
void main ()
{
/*program variable*/
ViSession defaultRM, viVSA;
ViStatus viStatus= 0;
ViUInt16 stb;
FILE *fDataFile;
long lthrowaway,lbursts;
long lNumberPoints= 0;
long lNumberBytes= 0;
long lLength = 0;