1- 10 Keysight B2961A/B2962A SCPI Command Reference, Edition 6
Programming Basics
SCPI Conventions and Data Formats
SCPI Conventions and Data Formats
The SCPI conventions shown in Table 1-1 are used throughout this document.
Data programmed or queried from the instrument is coded in ASCII. The data may
contain numeric values or character strings.
Table 1-1 SCPI Conventions and Data Formats
Convention Description
Angle
brackets < >
Items within angle brackets are parameter abbreviations. For
example, <NR1> indicates a specific form of numerical data.
Vertical bar | Vertical bars separate alternative parameters. For example,
<VOLT|CURR> indicates that either VOLT or CURR must be
placed there.
Square
brackets [ ]
Items within square brackets are optional. The representation
[SOURce:]VOLTage means that SOURce: may be omitted.
Parentheses ( ) Items within parentheses are used in place of the usual
parameter types to specify a channel list. The notation (@1:3)
specifies a channel list that includes channels 1, 2, and 3. The
notation (@1,3) specifies a channel list that includes only
channels 1 and 3.
Braces { } Braces indicate parameters that may be repeated zero or more
times. It is used especially for representing arrays. The notation
<A>{,<B>} shows that parameter “A” must be entered, while
parameter “B” omitted or may be entered one or more times.
<NR1> Digits with an implied decimal point assumed at the right of the
least-significant digit. Example: 273
<NR2> Digits with an explicit decimal point. Example: 27.3
<NR3> Digits with an explicit decimal point and an exponent.
Example: 2.73E+02
<NRf> Extended format that includes <NR1>, <NR2> and <NR3>.
Examples: 273, 27.3, 2.73E+02