Entering Amplitude Correction Data - Agilent Technologies ESA-E Series Programmer's Manual

Esa spectrum analyzers
Hide thumbs Also See for ESA-E Series:
Table of Contents

Advertisement

Entering Amplitude Correction Data

/************************************************************/

/* Entering Amplitude Correction Data

/*
/* This C programming example does the following.
/* The SCPI instrument commands used are given as
/* reference.
/*
/* - Opens an HP-IB session at address 18
/* - Clears the Analyzer
/* - Resets the Analyzer
/*
*RST
/* - Sets the stop frequency to 1.5 GHz
/*
SENS:FREQ:STOP 1.5 GHZ
/* - Set the input port to the 50 MHz amplitude reference
/*
CAL:SOUR:STAT ON
/* - Enter amplitude correction frequency/amplitude pairs:
/*
0 Hz/ 0 dB, 100 MHz/5 dB, 1 GHz/-5 dB, 1.5 GHz/ 10 dB
/*
SENS:CORR:CSET1:DATA 0,0,100E6,5.0,1.0E9,-5.0,...
/* - Activate amplitude correction
/*
SENS:CORR:CSET1:DATA
/*
SENS:CORR:CSET1:ALL:STAT ON
/* - Query the analyzer for the amplitude corection factors */
/*
SENS:CORR:CSET1:DATA?
/* - Store them in an array
/* - Display the array
/* - Close the session
/************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <conio.h>
#include <ctype.h>
#include <string.h>
#include "visa.h"
#define hpESA_IDN_E4401B
#define hpESA_IDN_E4411B
ViSession defaultRM, viESA;
ViStatus
errStatus;
ViChar
cIdBuff[256]= {0};
Chapter 3
"Hewlett-Packard, E4401B"
"Hewlett-Packard, E4411B"
Programming Examples
Entering Amplitude Correction Data
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
3-53

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents