EasyManuals Logo
Home>Agilent Technologies>Inverter>E8267D

Agilent Technologies E8267D User Manual

Agilent Technologies E8267D
366 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 #105 background imageLoading...
Page #105 background image
Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide 95
Programming Examples
GPIB Programming Interface Examples
#include "windows.h"
#include <conio.h>
#define MAX_CNT 1024
int sweep=1; // End of sweep flag
/* Prototypes */
ViStatus _VI_FUNCH interupt(ViSession vi, ViEventType eventType, ViEvent event, ViAddr addr);
int main ()
{
ViSession defaultRM, vi;// Declares variables of type ViSession
// for instrument communication
ViStatus viStatus = 0;// Declares a variable of type ViStatus
// for GPIB verifications
char rdBuffer[MAX_CNT];// Declare a block of memory data
viStatus=viOpenDefaultRM(&defaultRM);// Initialize VISA session
if(viStatus < VI_SUCCESS){// If problems, then prompt user
printf("ERROR initializing VISA... exiting\n");
printf("\n");
return -1;}
// Open session to gpib device at address 19
viStatus=viOpen(defaultRM, "GPIB::19::INSTR", VI_NULL, VI_NULL, &vi);
if(viStatus){ // If problems then prompt user
printf("ERROR: Could not open communication with
instrument\n");
printf("\n");
return -1;}
viClear(vi); // Clears the signal generator
viPrintf(vi, "*RST\n"); // Resets signal generator
// Print program header and information
printf("** End of Sweep Service Request **\n");
printf("\n");
printf("The signal generator will be set up for a step sweep mode
operation.\n");
printf("An ’*’ will be printed while the instrument is sweeping. The end of
\n");
printf("sweep will be indicated by an SRQ on the GPIB and the program will
end.\n");
printf("\n");

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Agilent Technologies E8267D Specifications

General IconGeneral
BrandAgilent Technologies
ModelE8267D
CategoryInverter
LanguageEnglish

Related product manuals