EasyManuals Logo

Keysight E4428C ESG RF User Manual

Keysight E4428C ESG RF
404 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 #93 background imageLoading...
Page #93 background image
Keysight Signal Generators Programming Guide 85
Programming Examples
GPIB Programming Interface Examples
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
//
// PROGRAM DESCRIPTION:This example program verifies that the GPIB connections and
// and interface are functional.
// Turn signal generator power off then on and then run the program
//
//****************************************************************************************
#include <visa.h>
#include <stdio.h>
#include "StdAfx.h"
#include <stdlib.h>
void main ()

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight E4428C ESG RF and is the answer not in the manual?

Keysight E4428C ESG RF Specifications

General IconGeneral
BrandKeysight
ModelE4428C ESG RF
CategoryPortable Generator
LanguageEnglish

Related product manuals