Tektronix products are covered by U.S. and foreign patents, issued and pending. Information in this publication supercedes
that in all previously published material. Specifications and price change privileges reserved.
TEKTRONIX and TEK are registered trademarks of Tektronix, Inc.
Contacting Tektronix
Tektronix, Inc.
14200 SW Karl Braun Drive
P.O. Box 500
Beaverton, OR 97077
USA
For product information, sales, service, and technical support:
HIn North America, call 1-800-833-9200.
HWorldwide, visit www.tektronix.com to find contacts in your area.
This programmer manual is for the RSA3408A 8 GHz Real-Time S pectrum
Analyzer. It provides information on operating your analyzer using the General
Purpose Interface Bus (GPIB).
This manual is composed of the following sections:
HGetting Started outlines how to use the GPIB interface.
HSyntax and Commands defines the syntax used in command descriptions,
presents a list of all command subsystems, and presents detailed descriptions
of all programming commands.
HStatus and Events describes how the status and Events Reporting system
operates and presents a list of all system errors.
HProgramming Examples describes some example analyzer programs.
HAppendices provides additional information including character charts, GPIB
interface specification, and factory initialization settings.
Related Manual
RSA3408A User Manual
(Standard accessory, Tektronix part number 071-1617-XX)
Describes how to install the analyzer and how to work with the menus and
details the functions.
RSA3408A Programmer Manual
xi
Preface
xii
RSA3408A Programmer Manual
Getting Started
Getting Started
You can write computer programs that remotely set the analyzer front panel
controls or that take measurements and read those measurements for further
analysis or storage.
To help you get started with programming the analyzer, this section includes the
following sections:
HOverview of the Manual
Summarizes the t ype of programming information contained in each major
section of this manual.
HConnecting the Interface
Describes how to physically connect the analyzer to a controller.
HUsing GPIB Ports
Describes how to use the GPIB port.
HSetting the GPIB Parameters from the Front Panel
Describes how to set the GPIB parameters from the front panel.
HUsing TekVISA
Describes how to use the TekVISA communication protocol.
RSA3408A Programmer Manual
1- 1
Getting Started
Overview of the Manual
The information contained in each major section of this manual is described
below.
Syntax and Commands
:CALCulate Commands
:TRIGger
:ABORt Commands
IEEE Common Commands
*CAL?
*CLS
*ESE
*ESR
*IDN?
*OPC
Section 2, Syntax and Commands, describes the structure and content of the
messages your program sends to the analyzer. Figure 1--1 shows command parts
as described in the Command Syntax subsection.
Command parts
Header
Comma
:MMEMory:COPYFILE1,FILE2
Mnemonics
Figure 1- 1: Command parts
Section 2 also describes the effect of each command and provides examples of
how you might use it. The Command Groups section provides lists by functional
areas. The IEEE Common Commands and the subsequent sections arrange
commands alphabetically (Figure 1--2).
ArgumentsSpace
:CALCulate:MARKer:X
:CALCulate:MARKer:AOFF
S
A
E
:CALCulate:DLINe
S
A
Syntax:...
Arguments:
E
Examples:...
Commands grouped in functional areasCommands listed alphabetically
Figure 1- 2: Functional groupings and an alphabetical list of commands
1- 2
RSA3408A Programmer Manual
Getting Started
Status and Events
The program may request information from the analyzer. The analyzer provides
information in the form of status and error messages. Figure 1--3 illustrates the
basic operation of this system.
Section 3, Status and Events, describes how to get status or event information
from the program and details the event and error messages.
Your program requests
status and event reports.
Controller
The analyzer sends status and event reports.
RSA3408A
GPIB cable
Figure 1- 3: Event-driven program
Programming Examples
Section 4, Programming Examples, includes Visual C++ source code as well as
sample programs for running macro programs.
Figure 1- 4: Sample program (Visual C++ source code)
RSA3408A Programmer Manual
1- 3
Getting Started
Connecting the Interface
The analyzer has a 24-pin GPIB connector on its rear panel, as shown in
Figure 1--5. This connector has a D-type shell and conforms to IEEE Std
488.1--1987.
Attach an IEEE Std 488.1-1987 GPIB cable (Tektronix part number
012-0991-00) to this connector.
GPIB connector
1- 4
Figure 1- 5: GPIB connector (rear panel)
Appendix B: GPIB Interface Specifications gives more information on the GPIB
configuration of the analyzer.
For the other interfaces, refer to the RSA3408A User Manual.
RSA3408A Programmer Manual
Using the GPIB Port
Getting Started
The analyzer has Talker/Listener functions through which it can communicate
with other devices, as well as the external controller, located on the bus.
GPIB
ControllerUsing the analyzer as a talker or listener
Figure 1- 6: GPIB connection
GPIB Requirements
Observe these rules when you use your analyzer with a GPIB network:
HAssign a unique device address to each device on the bus. No two devices
can share the same device address.
HDo not connect more than 15 devices to any one bus.
HConnect one device for every 2 meters (6 feet) of cable used.
HDo not use m ore than 20 meters (65 feet) of cable to connect devices to a
bus.
HTurn on at least two-thirds of the devices on the network while using the
network.
HConnect the devices on the network in a star or linear configuration as shown
in Figure 1--7. Do not use loop or parallel configurations.
GPIB Device
GPIB Device
GPIB Device
GPIB Device
GPIB Device
RSA3408A Programmer Manual
GPIB Device
Figure 1- 7: Typical GPIB network configurations
GPIB Device
1- 5
Getting Started
Setting the GPIB Parameters from the Front Panel
Use the SYSTEM → Remote Setup menu to set the GPIB parameters as
required for the bus configuration. Once you have set the parameters, you can
control the analyzer through the GPIB interface.
Display Brightness
Reset All to Factory Defaults
Remote Setup...
Version and Installed Options...
Instrument Setup...
Remote Interface
GPIB Setup...
Ethernet Setup...
Off/On
GPIB Address
Connection Mode...
GPIB Port
Tek VISA
Figure 1- 8: Remote Setup menu
Remote Setup Menu
The Remote Setup menu contains the following controls:
Remote Interface. Turns on or off the connection between the analyzer and the
interface bus.
GPIB Setup... Sets the GPIB address and connection mode.
GPIB Address. Sets the GPIB address of the analyzer when GPIB Port is
selected as the Connection Mode. Range: 0 to 30 (default: 1)
Connection Mode. Selects the physical GPIB port or the virtual (TekVISA)
connection method.
HGPIB Port. Default. Uses the IEEE488.2 connector on the rear panel of the
analyzer to communicate with an external controller.
Refer to the next section Setting up the GPIB port for the procedure.
HTekV I SA. Uses TekVISA to communicate with test instrumentation through
Ethernet (LAN connector on the side panel of the analyzer), and also to run a
control program locally on the analyzer.
Refer to Using TekVISA on page 1--8 for more information.
1- 6
RSA3408A Programmer Manual
Getting Started
Ethernet Setup... Not available currently. Use the Windows XP Control Panel to
set up networking parameters.
Setting Up the GPIB Port
When you use the GPIB port, follow these steps to set the parameters:
1. Press the SYSTEM key in the UTILITY block on the front panel.
2. Press the side key Remote Setup...→ GPIB Setup...
Remote Setup menu
Remote Interface
Selects whether the connection
between the analyzer and GPIB
is turned on or off.
GPIB Setup...
Sets the GPIB parameters (GPIB
address and connection mode).
Figure 1- 9: Setting the GPIB parameters
3. Press the Connection Mode... side key and select GPIB Port.
4. Press the GPIB Address side key and set the address using either the
general purpose knob or the numeric keypad.
RSA3408A Programmer Manual
NOTE. The GPIB address cannot be initialized with *RST command.
5. Press the Cancel--Back (top) side key and then the Remote Interface
side key to select On.
To disconnect the analyzer from the bus:
HPress the Remote Interface side key to select Off.
When the analyzer is disconnected from the bus, all the communication
processes with the controller are interrupted.
1- 7
Getting Started
Using TekVISA
TekVISA is Tektronix implementation of VISA (Virtual Instrument Software
Architecture), an industry-standard communication protocol. It allows you to
write programs using the RSA3400A Series SCPI command set to control the
instrument through interfaces besides the built-in IEEE 488.2 port. Programs are
written to execute on the local or remote controller. The RSA3400A Series
implementation of TekVISA includes a subset of the TekVISA functionality
offered on Tektronix oscilloscopes. The Virtual GPIB (GPIB8), GPIB, and LAN
(VXI-11 protocol) interfaces are supported, but not the ASRL interface.
NOTE. The details on TekVISA concepts and operations are explained in the
TekVISA Programmer Manual. Refer to Installing TekVISA described below for
accessing the files.
Be aware of the following points:
HIf TekVISA is not installed or has not been activated, and you select
TekVISA as the connection mode, the instrument still attempts to connect to
TekVISA. This does not hang up the instrument, but the GPIB port i s taken
off-line until you select GPIB Port as the connection mode again.
Installing TekVISA
HApplications which are designed to execute locally on the instrument need to
share the Wi ndows processor with the measurement calculation software of
the analyzer. If the controller application is very compute-intensive, it will
slow down the analyzer application significantly.
The TekVISA tools are not installed when you receive the instrument.
Use the following procedure to install the tools.
To use TekVISA, these conditions must be satisfied:
HWindows XP is used as the instrument’s operating system.
Instruments using Windows 98SE must be upgraded to Windows XP for
TekVISA to operate properly.
HA TekVISA-compatible version of the analyzer application is installed and
running on the instrument. Version must be greater than 3.00.000.
HTekVISA is installed on the instrument. Version 2.03 is recommended.
1- 8
RSA3408A Programmer Manual
Getting Started
The TekVISA-related files are on the internal hard disk of the analyzer
in these directories:
HC:\Tektronix\T ekVISA\installer contains the TekVISA installer.
HC:\Tektronix\TekVISA\manual contains the TekVISA Programmer Manual.
Use the following steps to install the TekVISA tools on your analyzer:
NOTE. For details on accessing Window s XP on the analyzer, refer to the
RSA3408A User Manual.
1. Connect a USB mouse and keyboard to the USB ports on the side panel of
the analyzer.
2. Display the Windows XP desktop on the screen.
3. Find the setup.exe file in the C:\T ektronix\TekVISA\installer directory
using Windows Explorer or other file access methods.
4. Run setup.exe and follow the instructions.
The TekVISA Programmer Manual is found in the C:\Tektronix\TekVISA\manual
directory.
RSA3408A Programmer Manual
1- 9
Getting Started
1- 10
RSA3408A Programmer Manual
Syntax and Commands
Command Syntax
This section contains information on the S t andard Commands for Programmable
Instruments (SCPI) and IEEE 488.2 Common Commands you can use to
program your RSA3408A analyzer. The information is organized in the
following subsections:
HBackus-Naur Form Definition
HSCPI C ommands and Queries
HIEEE 488.2 Common Commands
HConstructed Mnemonics
Backus-Naur Form Definition
This manual may describe commands and queries using the Backus-Naur Form
(BNF) notation. Table 2--1 defines the standard BNF symbols:
Table 2- 1: BNF symbols and meanings
SymbolMeaning
<>Defined element
::=Is defined as
|Exclusive OR
{}Group; one element is required
[]Optional; can be omitted
...Previous element(s) may be repeated
()Comment
RSA3408A Programmer Manual
2- 1
Command Syntax
SCPI Commands and Queries
SCPI is a standard created by a consortium that provides guidelines for remote
programming of instruments. These guidelines provide a consistent programming environment for instrument control and data transfer. This environment
uses defined programming messages, instrument responses, and data format
across all SCPI instruments, regardless of manufacturer. The analyzer uses a
command language based on the SCPI standard.
The SCPI language is based on a hierarchical or tree structure (see Figure 2--1)
that represents a subsystem. The top level of the tree is the root node; it is
followed by one or more lower-level nodes.
TRIGger
SEQuence
POLarity
SOURceLEVel
Root node
Lower-level nodes
Figure 2- 1: Example of SCPI subsystem hierarchy tree
You can create commands and queries from these subsystem hierarchy trees.
Commands specify actions for the instrument to perform. Queries return
measurement data and information about parameter settings.
2- 2
RSA3408A Programmer Manual
Loading...
+ 1660 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.