Programming Information ESG-D Series Option H98 Signal Generators
Getting Started with SCPI
5-2 Manual Supplement
Getting Started with SCPI
This section includes some basic reference material for the Standard Commands for
Programmable Instruments language (SCPI). For more detailed information, see the
programming guide.
Understanding Common Terms
The following terms are used throughout the remainder of this chapter.
Controller A controller is any computer used to communicate with a SCPI
instrument. A controller can be a personal computer, a minicomputer, or a
plug-in card in a card cage. Some intelligent instruments can also function
as controllers.
Instrument An instrument is any device that implements SCPI. Most instruments are
electronic measurement or stimulus devices, but this is not a requirement.
Similarly, most instruments use an GPIB or RS-232 interface for
communication. The same concepts apply regardless of the instrument
function or the type of interface used.
Program
Message A program message is a combination of one or more properly formatted
SCPI commands. Program messages always go from a controller to an
instrument. Program messages tell the instrument how to make
measurements and output signals.
Response
Message A response message is a collection of data in specific SCPI formats.
Response messages always go from an instrument to a controller or
listening instrument. Response messages tell the controller about the
internal state of the instrument and about measured values.
Command A command is an instruction in SCPI. You combine commands to form
messages that control instruments. In general, a command consists of
mnemonics (keywords), parameters, and punctuation.
Query A query is a special type of command. Queries instruct the instrument to
make response data available to the controller. Query mnemonics always
end with a question mark.