2
SCPI Introduction
SCPI (Standard Commands for Programmable Instruments) is a standardized
instrument programming language that is built upon the existing standard IEEE 488.1
and IEEE 488.2 and conforms to various standards, such as the floating point
operation rule in IEEE 754 standard, ISO 646 7-bit coded character set for information
interchange (equivalent to ASCII programming). The SCPI commands provide a
hierarchical tree structure, and consist of multiple subsystems. Each command
subsystem consists of one root keyword and one or more sub-keywords.
Syntax
The command line usually starts with a colon; the keywords are separated by colons,
and following the keywords are the parameter settings available. The command
ending with a quotation mark indicates querying a certain function and returns the
query results. The keywords of the command and the first parameter are separated by
a space.
For example,
:ANALyzer:TYPE
<
type>
:ANALyzer:TYPE?
ANALyzer
is the root keyword of the command,
TYPE
is the second-level keyword.
The command line starts with a colon, and different levels of keywords are also
separated by colons. <
type> indicates a settable parameter. The command ending
with a quotation mark indicates querying a function. The command
keywords
:ANALyzer:TYPE
and the parameter <
type> are separated by a space.
In some commands with parameters,
","
is often used to separate multiple
parameters. For example,
:TRIGger:IN:TYPE
<
d>,<type>
Symbol Description
The following symbols are not sent with the commands.
1. Braces { }
The contents in the braces can contain one or multiple parameters. These
parameters can be omitted or used for several times. Parameters are usually
separated by the vertical bar "|". When using the command, you must select one of
the parameters.
2. Vertical Bar |
The vertical bar is used to separate multiple parameters. When using the
command, you must select one of the parameters.
3. Square Brackets [ ]
SCPI Introduction
Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
3
Summary of Contents for DP2000 Series
Page 1: ......
Page 137: ...d Exit Programming Examples Copyright RIGOL TECHNOLOGIES CO LTD All rights reserved 129...
Page 145: ......