Agilent Technologies E4406A VSA Satellite Radio User Manual


 
Chapter 3 143
Programming Examples
Performing Alignments and Getting Pass/Fail Results
Performing Alignments and Getting Pass/Fail
Results
This is the C programming example Align.c
/************************************************************
*Align.c
*Agilent Technologies 2001
*
*E4406A VSA Series Transmitter Tester using VISA for I/O
*The C program does the following:
*Open session to GPIB device at address 18
*Increase timeout to 75 sec
*Lock out front panel keypad control
*Reset the analyzer
*Auto-align the analyzer
*Check for alignment success
*Alignment succeeds if query result is zero (0)
*Print success/failure message to standard output
*Set the Analzyer to Continuous Sweep
*Unlock the front panel keypad
*Reset timeout to 2 sec
*Close session
************************************************************/
#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);