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-alignmen t
/************************************************************ /
/* Performing Internal Self-alignmen t
/ *
/* 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 ha s
/* been completed, but the pass/fail status of the align -
/* ment process .
/ *
/* This C programming example does the following .
/* The SCPI instrument commands used are given as
/* reference .
/ *
/* - Opens an HP-IB session at address 1 8
/* - Clears the Analyze r
/*
*CL S
/* -
Resets the Analyzer
/*
*RST
/* - VISA function sets the time out to infinit e
/* - Initiate self-alignmen t
/*
CAL :ALL
/* - Query for operation complet e
/*
*OPC?
/* - Query for results of self-alignment
/*
CAL :ALL ?
/* - Report the results of the self-alignmen t
/* - 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 "Hewlett-Packard, E4401B "
#define hpESA IDN E4411B "Hewlett-Packard, E4411B "
ViSession defaultRM, viESA ;
3-20
Chapter 3

Advertisement

Table of Contents
loading

Table of Contents