5.1 SCPI Brief Introduction
SCPI (Standard Commands for Programmable Instrument) is an ASCII- based instrument
command language designed for test and measurement instruments, with the goal of reducing
automatic test equipment (ATE) program development time. SCPI accomplishes this goal by
providing a consistent programming environment for instrument control and data usage. This
consistent programming environment is achieved by the use of defined program messages,
instrument responses, and data formats across all SCPI instruments. By providing a consistent
programming environment, replacing one SCPI instrument with another SCPI instrument in a
system should require less effort than with non- SCPI instrument.
SCPI is not a standard which completely provides for interchangeable instrumentation. SCPI
helps move toward interchangeability by defining instrument commands and responses, but not
functionality, accuracy, resolution, and so forth.
5.1.1 Basic Knowledge Requirement
Programming with SCPI requires knowledge of:
•
Computer programming languages, such as C or C++.
•
The language of your instrument. A HAS Series spectrum analyzer employs SCPI as its
programming language.SCPI.
5.1.2 Command Syntax
Command syntax includes standard notations and statement rules.
Command Statement Rules Overview
•
Command statements read from left to right
•
Use either long form or short form of keywords, but do not use both
•
No separating space between the keywords, only use a colon to separate keywords of
different levels
•
Always separating a keyword from a variable with a space
•
Always separating a variable from its unit with a space (if variable has a unit)
5.1.3 Standard Notations
A command consists of mnemonics (keywords), parameters and punctuation. Before you start to
program your analyzer, familiarize yourself with the standard notation of each of them.
Keywords
Many commands have both a long and a short form: use either one. (a combination of the two is
not allowed). Consider the: FREQuency command for example:
•
Short form : FREQ
•
Long form : FREQuency
SCPI is not case sensitive, so fREquEncy is just as valid as FREQUENCY, but FREQ and
FREQUENCY are the only valid forms of the FREQuency command. In this documentation, upper
case letters indicate the short form of the keyword. The upper case and lower case letters indicate
the long form of the keyword.
Summary of Contents for HSA2030
Page 1: ...USER S MANUAL Handheld Spectrum Analyzer HSA2030 HSA2016 Series V1 0 0...
Page 7: ...Chapter1 Quick Start Instrument Introduction General Check Preparation...
Page 14: ......
Page 15: ......
Page 27: ......
Page 30: ......
Page 32: ......
Page 39: ......
Page 55: ......