HP IBASIC Supplement 2-7
Recording Programs
What's in a Recorded Program
SCPI Mnemonics
The data sent to the analyzer by the OUTPUT command is called a SCPI
(Standard Commands for Programmable Instruments) mnemonic and is
found in quotes following the device selector path name and semicolon.
See Figure 2-1.
Figure 2-1 Example IBASIC OUTPUT Command Syntax
SCPI is a standard instrument control programming language that
provides commands that are common from one product to another, thus
reducing the number of device specific commands. It uses easy-to-learn,
self-explanatory syntax that provides flexibility for both novice and
expert programmers.
The SCPI mnemonic codes used by IBASIC are the same ones used to
control the instrument remotely via an external computer. External
computers communicate with the analyzer over the external GPIB bus
while IBASIC programs communicate with it over the internal bus. In
our example, the mnemonic “SOUR1:POW -10 dBm” tells the
instrument to set the source power to −10 dBm.
For more information on GPIB interfacing using IBASIC, refer to
Chapter 8, “Interfacing with External Devices.” The SCPI mnemonics for
the analyzer are documented in the Programmer's Guide.
IBASIC command
OUTPUT @Rfna;"SOUR1:POW -10 dBm”
IBASIC variable: Holds
device selector path name
(analyzer address)
Delimiter: Separates
IBASIC command from
SCPI mnemonic
SCPI mnemonic
(command)