EasyManuals Logo

Keysight Technologies N5173B EXG Programming Guide

Keysight Technologies N5173B 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 #88 background imageLoading...
Page #88 background image
88 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
GPIB Programming Interface Examples
}else{
printf("Source RF state is : off\n");
}
// Close the sessions
viClose(vi);
viClose(defaultRM);
}
Generating a CW Signal Using VISA and C
This example uses VISA library functions to control the signal generator. The
signal generator is set for a CW frequency of 500 kHz and a power level of −2.3
dBm. Launch
Microsoft Visual C++ 6.0, add the required files, and enter the code into your
.cpp source file. visaex4.cpp performs the following functions:
— verifies the GPIB connections and interface are functional
— resets the signal generator
— queries the instrument (CW frequency, power level, frequency mode, and
RF state)
— reads responses into the rdBuffer (CW frequency, power level, and
frequency mode)
— turns signal generator RF state off
— verifies RF state off
The following program example is available on the signal generator
Documentation CD-ROM as visaex4.cpp.
//*****************************************************************
// PROGRAM FILE NAME: visaex4.cpp
//
// PROGRAM DESCRIPTION: This example demonstrates query commands.
The signal generator
// frequency and power level.
// The RF state of the signal generator is turn on and then the state
is queried. The
// response will indicate that the RF state is on. The RF state is
then turned off and
// queried. The response should indicate that the RF state is off.
The query results are
// printed to the to the display window.
//
//*****************************************************************

Table of Contents

Other manuals for Keysight Technologies N5173B EXG

Questions and Answers:

Question and Answer IconNeed help?

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

Keysight Technologies N5173B EXG Specifications

General IconGeneral
BrandKeysight Technologies
ModelN5173B EXG
CategoryPortable Generator
LanguageEnglish

Related product manuals