In this section:
Introduction to SCPI ............................................................... 11-1
SCPI command programming notes ...................................... 11-3
Acquiring readings using SCPI commands ............................ 11-9
Introduction to SCPI
The Standard Commands for Programmable Instruments (SCPI) standard is a syntax and set of
commands that is used to control test and measurement devices.
The following information describes some basic SCPI command information and how SCPI is used
with the 2470 and presented in the 2470 documentation.
This section also contains general information about using SCPI.
Command execution rules
Command execution rules are as follows:
•
Commands execute in the order that they are presented in the command message.
•
An invalid command generates an event message and is not executed.
•
Valid commands that precede an invalid command in a command message are executed.
•
Valid commands that follow an invalid command in a command message are ignored.
Command messages
A command message is made up of one or more command words sent by the controller to the
instrument.
SCPI commands contain several command words that are structured to create command messages.
The command words are separated by colons (
:
). For example, to configure an ethernet connection,
the command words are:
:SYSTem:COMMunication:LAN:CONFigure
Section 11
Introduction to SCPI commands