EasyManuals 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 #62 background imageLoading...
Page #62 background image
56 Chapter 2
Programming Examples
GPIB Programming Examples
code into your .cpp source file.
The following program example is available on the PSG Documentation CD-ROM as visaex9.cpp.
//***************************************************************************************
// PROGRAM NAME:visaex9.cpp
//
// PROGRAM DESCRIPTION:In this example, the data questionable status register is read.
// The data questionable status register is enabled to read an unleveled condition.
// The signal generator is then set up for an unleveled condition and the data
// questionable status register read. The results are then displayed to the user.
// The status questionable register is then setup to monitor a modulation error condition.
// The signal generator is set up for a modulation error condition and the data
// questionable status register is read.
// The results are displayed to the active window.
//
//***************************************************************************************
#include <visa.h>
#include "StdAfx.h"
#include <iostream>
#include <conio.h>
void main ()
{
ViSession defaultRM, vi;// Declares a variables of type ViSession
// for instrument communication
ViStatus viStatus = 0;// Declares a variable of type ViStatus
// for GPIB verifications
int num=0;// Declares a variable for switch statements
char rdBuffer[256]={0}; // Declare a variable for response data
viStatus=viOpenDefaultRM(&defaultRM); // Initialize VISA session

Table of Contents

Other manuals for Agilent Technologies E8267C

Questions and Answers:

Question and Answer IconNeed help?

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

Agilent Technologies E8267C Specifications

General IconGeneral
BrandAgilent Technologies
ModelE8267C
CategoryPortable Generator
LanguageEnglish

Related product manuals