EasyManuals Logo

Keysight Technologies N5172B EXG Programming Guide

Keysight Technologies N5172B EXG
398 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 #75 background imageLoading...
Page #75 background image
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 75
Programming Examples
GPIB Programming Interface Examples
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 ()
{
ViSession defaultRM, vi; // Declares a variable of type
ViSession
// for instrument communication

Table of Contents

Other manuals for Keysight Technologies N5172B EXG

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight Technologies N5172B EXG and is the answer not in the manual?

Keysight Technologies N5172B EXG Specifications

General IconGeneral
BrandKeysight Technologies
ModelN5172B EXG
CategoryPortable Generator
LanguageEnglish

Related product manuals