EasyManuals Logo

Agilent Technologies E4406A VSA Series User Manual

Agilent Technologies E4406A VSA Series
420 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #139 background imageLoading...
Page #139 background image
Chapter 3 139
Programming Examples
Performing Alignments and Getting Pass/Fail Results
Performing Alignments and Getting Pass/Fail
Results
This C programming example (HPE4406Align.c):
uses the VISA library for input/output, opens a session to a GP-IB
device at address 18 and presets the instrument
increases the instrument timeout to one minute (60 sec) to allow
time for the auto-alignment to run
runs the auto-alignment procedure
queries the auto-alignment results and outputs the success/failure
information
Example:
#include <stdio.h>
#include <stdlib.h>
#include "visa.h"
void main ()
{
/*program variables*/
ViSession defaultRM, viVSA;
ViStatus viStatus= 0;
long lCalStatus = 0;
/*open session to GPIB device at address 18 */
viStatus=viOpenDefaultRM (&defaultRM);
viStatus=viOpen (defaultRM, "GPIB0::18::INSTR",
VI_NULL,VI_NULL, &viVSA);
/*check opening session sucess*/
if(viStatus)
{
printf("Could not open a session to GPIB device at
address 18!\n");
exit(0);
}
/*increase timeout to 60 sec*/
viSetAttribute(viVSA,VI_ATTR_TMO_VALUE,60000);
/*reset the instrument*/
viPrintf(viVSA, "*RST\n");
/*print message */
printf("The auto-alignment is in progress...\nPlease
wait...\n\n");
/*auto-align the instrument*/
viPrintf(viVSA, "CAL?\n");

Table of Contents

Other manuals for Agilent Technologies E4406A VSA Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies E4406A VSA Series and is the answer not in the manual?

Agilent Technologies E4406A VSA Series Specifications

General IconGeneral
BrandAgilent Technologies
ModelE4406A VSA Series
CategoryTest Equipment
LanguageEnglish

Related product manuals