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 #73 background imageLoading...
Page #73 background image
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 73
Programming Examples
GPIB Programming Interface Examples
100 !
110 ! CLEAR and RESET the controller and type in the following
commands and then
120 ! RUN the program:
130 !
140
!******************************************************************
150 !
160 Sig_gen=719 ! Declares a variable to hold the signal
generator's address
170 LOCAL Sig_gen ! Places the signal generator into Local mode
180 CLEAR Sig_gen ! Clears any pending data I/O and resets the
parser
190 REMOTE 719 ! Puts the signal generator into remote mode
200 CLEAR SCREEN ! Clears the controllers display
210 REMOTE 719
220 OUTPUT Sig_gen;"*RST" ! Places the signal generator into a
defined state
230 PRINT "The signal generator should now be in REMOTE."
240 PRINT
250 PRINT "Verify that the remote [R] annunciator is on. Press the
`Local' key, "
260 PRINT "on the front panel to return the signal generator to
local control."
270 PRINT
280 PRINT "Press RUN to start again."
290 END ! Program ends
Interface Check Using NI-488.2 and C++
This example uses the NI-488.2 library to verify 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.
The following program example is available on the signal generator
Documentation CD-ROM as niex1.cpp.
//
*******************************************************************
//
// PROGRAM NAME: niex1.cpp

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