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 #101 background imageLoading...
Page #101 background image
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 101
Programming Examples
GPIB Programming Interface Examples
intCounter = intCounter-1;
}
printf("End of Program\n\n");
}
Saving and Recalling States Using VISA and C
In this example, instrument settings are saved in the signal generator’s save
register. These settings can then be recalled separately; either from the
keyboard or from the signal generator’s front panel. Launch Microsoft Visual
C++ 6.0, add the required files, and enter the following code into your .cpp
source file. visaex8.cpp performs the following functions:
—error checking
— clears the signal generator
— resets the status byte register
— resets the signal generator
— sets up the signal generator frequency, ALC off, power level, RF output on
— checks for operation complete
— saves to settings to instrument register number one
— recalls information from register number one
— prompts user input to put instrument into Local and checks for operation
complete
The following program example is available on the signal generator
Documentation CD-ROM as visaex8.cpp.
//*****************************************************************
// PROGRAM FILE NAME:visaex8.cpp
//
// PROGRAM DESCRIPTION:In this example, instrument settings are
saved in the signal
// generator's registers and then recalled.
// Instrument settings can be recalled from the keyboard or, when
the signal generator
// is put into Local control, from the front panel.
// This program will initialize the signal generator for an
instrument state, store the
// state to register #1. An *RST command will reset the signal
generator and a *RCL
// command will return it to the stored state. Following this remote
operation the user

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