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 #79 background imageLoading...
Page #79 background image
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 79
Programming Examples
GPIB Programming Interface Examples
#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 a variable of
type Addr4882_t
int main()
{
int sig; // Declares variable to hold
interface descriptor
sig = ibdev(0, 19, 0, 13, 1, 0); // Opens and initialize a
device descriptor
ibclr(sig); // Sends GPIB Selected Device
Clear (SDC) message
ibwrt(sig, "*RST", 4); // Places signal generator
in a defined state
cout << "The signal generator should now be in REMOTE. The
remote mode R "<<endl;
cout <<"annunciator should appear on the signal generator
display."<<endl;
cout <<"Press Enter to continue"<<endl;
cin.ignore(10000,'\n');
SendIFC(GPIB0); // Resets the GPIB interface
Address[0]=19; // Signal generator's address
Address[1]=NOADDR; // Signifies end element in
array. Defined in //
DECL-32.H
SetRWLS(GPIB0, Address); // Places device in Remote
with Lockout State.
cout<< "The signal generator should now be in LOCAL LOCKOUT.
Verify that all keys"<<endl;
cout<< "including the 'Local' key are disabled (Contrast keys
are not affected)"<<endl;

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