Performing Internal Self-Alignment - Agilent Technologies ESA-E Series Programmer's Manual

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

Advertisement

Programming Examples

Performing Internal Self-alignment

Performing Internal Self-alignment

/************************************************************/
/* Performing Internal Self-alignment
/*
/* This example shows two ways of executing an internal
/* self-alignment. The first demonstrates using the *OPC?
/* query to determine when the alignment has completed. The */
/* second demonstrates using the query form of the CAL:ALL
/* command to not only determine when the alignment has
/* been completed, but the pass/fail status of the align-
/* ment process.
/*
/* This C programming example does the following.
/* The SCPI instrument commands used
/* reference.
/*
/* - Opens an HP-IB session at address 18
/* - Clears the Analyzer
/*
*CLS
/* - Resets the Analyzer
/*
*RST
/* - VISA function sets the time out to infinite
/* - Initiate self-alignment
/*
CAL:ALL
/* - Query for operation complete
/*
*OPC?
/* - Query for results of self-alignment
/*
CAL:ALL?
/* - Report the results of the self-alignment
/* - Close the session
/************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#include <string.h>
#include "visa.h"
#define hpESA_IDN_E4401B
#define hpESA_IDN_E4411B
ViSession defaultRM, viESA;
3-20
are given as
"Hewlett-Packard, E4401B"
"Hewlett-Packard, E4411B"
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
Chapter 3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents