EasyManuals Logo
Home>Agilent Technologies>Inverter>E8257D

Agilent Technologies E8257D User Manual

Agilent Technologies E8257D
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 #78 background imageLoading...
Page #78 background image
68 Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide
Programming Examples
GPIB Programming Interface Examples
// Connect a GPIB cable from the PC GPIB card to the signal generator
// Enter the following code into the source .cpp file and execute the program
//
// ***************************************************************************************
#include "stdafx.h"
#include <iostream>
#include "windows.h"
#include "Decl-32.h"
using namespace std;
int GPIB0= 0; // Board handle
Addr4882_t Address[31]; // Declares an array of type Addr4882_t
int main(void)
{
int sig; // Declares a device descriptor variable
sig = ibdev(0, 19, 0, 13, 1, 0); // Aquires a device descriptor
ibclr(sig); // Sends device clear message to signal generator
ibwrt(sig, "*RST", 4); // Places the signal generator into a defined state
// Print data to the output window
cout << "The signal generator should now be in REMOTE. The remote indicator"<<endl;
cout <<"annunciator R should appear on the signal generator display"<<endl;
return 0;
}
Interface Check for GPIB Using VISA and C
This program uses VISA library functions and the C language to communicate with the signal
generator. The program verifies that the GPIB connections and interface are functional. Launch
Microsoft Visual C++ 6.0, add the required files, and enter the following code into your .cpp source
file. visaex1.cpp performs the following functions:
• verifies the GPIB connections and interface are functional
• switches the signal generator into remote operation mode
The following program example is available on the signal generator Documentation CD- ROM as
visaex1.cpp.
//****************************************************************************************
// PROGRAM NAME:visaex1.cpp
//

Table of Contents

Other manuals for Agilent Technologies E8257D

Questions and Answers:

Question and Answer IconNeed help?

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

Agilent Technologies E8257D Specifications

General IconGeneral
BrandAgilent Technologies
ModelE8257D
CategoryInverter
LanguageEnglish

Related product manuals