Agilent Technologies Model A.08.xx Water Dispenser User Manual


 
112 Chapter 3
Programming Examples
Performing Internal Self-alignment
Performing Internal Self-alignment
/************************************************************/
/* Performing Internal Self-alignment */
/* */
/* This example is for the E44xxB ESA Spectrum Analyzers */
/* and E740xA EMC Analyzers. */
/* */
/* 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 are given as */
/* reference. */
/* */
/* - Opens a GPIB 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 "Hewlett-Packard, E4401B"