EasyManua.ls Logo

Agilent Technologies E8267C Programming Guide

Agilent Technologies E8267C
198 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 #67 background imageLoading...
Page #67 background image
Chapter 2 61
Programming Examples
GPIB Programming Examples
#include "StdAfx.h"
#include "windows.h"
#include <conio.h>
#define MAX_CNT 1024
int sweep=1; // End of sweeep 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;}

Table of Contents

Other manuals for Agilent Technologies E8267C

Questions and Answers:

Agilent Technologies E8267C Specifications

General IconGeneral
Frequency Range250 kHz to 40 GHz
Output Impedance50 Ohms
Amplitude Accuracy±0.5 dB
Modulation TypesAM, FM, PM, Pulse
Power Requirements100-240 VAC
Weight20 kg (44 lbs)

Related product manuals