68 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
GPIB Programming Interface Examples
GPIB Programming Interface Examples
•
“Interface Check using HP Basic and GPIB” on page 72
•
“Interface Check Using NI-488.2 and C++” on page 73
•
“Interface Check for GPIB Using VISA and C” on page 75
•
“Local Lockout Using HP Basic and GPIB” on page 76
•
“Local Lockout Using NI-488.2 and C++” on page 78
•
“Queries Using HP Basic and GPIB” on page 80
•
“Queries Using NI-488.2 and Visual C++” on page 82
•
“Queries for GPIB Using VISA and C” on page 85
•
“Generating a CW Signal Using VISA and C” on page 88
•
“Generating an Externally Applied AC-Coupled FM Signal Using VISA and
•
“Generating an Internal FM Signal Using VISA and C” on page 93
•
“Generating a Step-Swept Signal Using VISA and C++” on page 96
•
“Generating a Swept Signal Using VISA and Visual C++” on page 98
•
“Saving and Recalling States Using VISA and C” on page 101
•
“Reading the Data Questionable Status Register Using VISA and C” on
•
“Reading the Service Request Interrupt (SRQ) Using VISA and C” on
Before Using the GPIB Examples
HP Basic addresses the signal generator at 719. The GPIB card is addressed at
7 and the signal generator at 19. The GPIB address designator for other
libraries is typically GPIB0 or GPIB1.
GPIB Function Statements (Command Messages)
Function statements are the basis for GPIB programming and instrument
control. These function statements, combined with SCPI, provide management
and data communication for the GPIB interface and the signal generator.
This section describes functions used by different IO libraries. For more
information, refer to the NI-488.2 Function Reference Manual for Windows,
Keysight Standard Instrument Control Library reference manual, and Microsoft
Visual C++ 6.0 documentation.
Abort Function
The HP Basic function
ABORT
and the other listed IO library functions terminate
listener/talker activity on the GPIB and prepare the signal generator to receive
a new command from the computer. Typically, this is an initialization command
used to place the GPIB in a known starting condition.
Library
Function Statement
Initialization Command
HP Basic
The
ABORT
function stops all GPIB activity.
10 ABORT 7
Содержание X-Series
Страница 4: ...4 ...
Страница 10: ...10 Contents ...