EasyManuals Logo

Keysight E4428C ESG RF User Manual

Keysight E4428C ESG RF
404 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 #76 background imageLoading...
Page #76 background image
68 Keysight Signal Generators Programming Guide
Using IO Interfaces
RS–232 Programming Interface Examples
Queries Using HP Basic and RS–232
This portion of the example program “Queries Using HP Basic and RS–232” on page 68, example program
demonstrates signal generator query commands over RS–232. Query commands are of the type *IDN?
and are identified by the question mark that follows the mnemonic.
Start HP Basic, type in the following commands, and then RUN the program:
The following program example is available on the signal generator Documentation CD–ROM as
rs232ex2.txt. For the full text of this program, refer to “Queries Using HP Basic and RS-232” on
page 156 or to the signal generator’s documentation CD–ROM.
190 OUTPUT 9;"*IDN?" ! Querys the sig gen ID
200 ENTER 9;Str$ ! Reads the ID
210 WAIT 2 ! Waits 2 seconds
220 PRINT "ID =",Str$ ! Prints ID to the screen
230 OUTPUT 9;"POW:AMPL -5 dbm" ! Sets the the power level to -5 dbm
240 OUTPUT 9;"POW?" ! Querys the power level of the sig gen
Queries for RS–232 Using VISA and C
This portion of the example program “Queries for RS–232 Using VISA and C” on page 68, uses VISA
library functions to communicate with the signal generator. The program verifies that the RS–232
connections and interface are functional.
The following program example is available on the signal generator Documentation CD–ROM as
rs232ex2.cpp. For the full text of this program, refer to “Queries for RS-232 Using VISA and C” on
page 158 or to the signal generator’s documentation CD–ROM.
status = viOpenDefaultRM(&defaultRM);// Initializes the system
// Open communication with Serial Port 2
status = viOpen(defaultRM, "ASRL2::INSTR", VI_NULL, VI_NULL, &instr);

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight E4428C ESG RF and is the answer not in the manual?

Keysight E4428C ESG RF Specifications

General IconGeneral
BrandKeysight
ModelE4428C ESG RF
CategoryPortable Generator
LanguageEnglish

Related product manuals