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

Esa spectrum analyzers
Table of Contents

Advertisement

Performing Internal Self-alignment

This C programming example does the following:
• Open an HP-IB session at address 18.
• Clear the analyzer.
• Reset the analyzer.
• VISA function sets the time out to infinite for this specified session.
• Initiate a self-alignment.
• Query for operation complete.
• Query for results of self-alignment.
• Report the results of the self-alignment.
• Close the session.
Example:
#include <stdio.h>
#include <stdlib.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};
char
cEnter = 0;
int
iResult = 0;
/*Set the input port to the 50 MHz amplitude reference*/
void Route50MHzSignal()
{
viQueryf(viESA, "*IDN?\n", "%t", &cIdBuff);
iResult = (strncmp( cIdBuff, hpESA_IDN_E4401B,
strlen(hpESA_IDN_E4401B)) && strncmp( cIdBuff,
hpESA_IDN_E4411B, strlen(hpESA_IDN_E4411B)));
if( iResult == 0 )
{
Chapter 3
Performing Internal Self-alignment
"Hewlett-Packard, E4401B"
"Hewlett-Packard, E4411B"
Programming Examples
3-19

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents