Agilent Technologies E4406A VSA Satellite Radio User Manual


 
Chapter 3 145
Programming Examples
Making an ACPR Measurement in cdmaOne (Option BAC)
Making an ACPR Measurement in cdmaOne
(Option BAC)
This is the C programming example ACPR.c
/***************************************************************************
*ACPR.c
*Agilent Technologies 2001
*
*E4406A VSA Series Transmitter Tester using VISA for I/O
*This Program shows how to do an ACPR measurement and get the data
* Note: You can do this measurement in Basic Mode by changing the
* INST CDMA command to INST BASIC
* This C program does the following:
* Open session to GPIB device at address 18
* check opening session sucess
* increase timeout to 60 sec
* print message to the standard output
* switch to CDMA MODE
* Reset device
* set the analyzer in single mode
* trigger an ACPR measurement and wait for it to complete
* Get the data into a buffer
* set the analyzer in continuous mode
* save the data to a file
* print message to the standard output
* Close session
*****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include "visa.h"
void main ()
{
/*program variable*/
ViSession defaultRM, viVSA;