EasyManua.ls Logo

HP ESA-E Series - Performing Internal Self-Alignment

HP ESA-E Series
398 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 3 3-19
Programming Examples
Performing Internal Self-alignment
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 "Hewlett-Packard, E4401B"
#define hpESA_IDN_E4411B "Hewlett-Packard, 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 )
{

Table of Contents

Related product manuals