Agilent Technologies E4406A VSA manual Making an ACPR Measurement in cdmaOne Option BAC, Chapter

Models: E4406A VSA

1 406
Download 406 pages 63.49 Kb
Page 145
Image 145
Making an ACPR Measurement in cdmaOne (Option BAC)

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;

Chapter 3

145

Page 145
Image 145
Agilent Technologies E4406A VSA Making an ACPR Measurement in cdmaOne Option BAC, This is the C programming example ACPR.c