SCPI introduction
EN
Tablet1000 programming manual Copyright © Qingdao Hantek Electronics Co., LTD
4
2 SCPI introduction
SCPI (Standard Commands for Programmable Instruments) is a standardized
instrument programming language based on the existing standards IEEE 488.1 and
IEEE 488.2, following the floating-point operation rules in IEEE 754 standard, ISO 646
information exchange 7-bit coding symbol (equivalent to ASCII programming) and many
other standards. The SCPI command is of tree hierarchy, consisting of multiple
subsystems. Each subsystem consists of a root keyword and one or more level
keywords.
Command format
Commands usually start with a colon “:”. Keywords are separated by colons “:”, and
optional parameter settings are followed by keywords. Add a question mark “?” after the
command line to indicate to query the function. The command keyword is separated by a
space from the first parameter.
For example:
:ACQuire:TYPE <type>
:ACQuire:TYPE?
ACQuire is the root keyword of the command,
TYPE is the second-level keyword.
The command line starts with a colon “:” and separates each level of keywords with a
colon “:”.
<type> indicates the parameter that can be set.
“?” indicates a query.
Command keyword :ACQuire:TYPE and parameter <type> are separated by a space.
In some commands that take parameters, multiple parameters are usually separated by
commas “,”.
For example:
[:TRACe[<n>]]:DATA:VALue volatile,<points>,<data>
Marks description
The following marks are not sent with the command.
1. Curly braces {}
The contents in braces are parameter options. Usually, parameters are separated by a
vertical bar “|”. When using a command, you must select one of the parameters.
2. Vertical bar |
A vertical bar is used to separate multiple parameter options. You must select one
parameter when running a command.
3. Square brackets []
The contents in square brackets can be ignored.
4. Triangle brackets <>