5-15
Remote Operation
SCPI Syntax Rules
SCPI commands are grouped in subsytems
In accordance with IEEE 488.2, the instrument’s commands are grouped into
“subsystems.” Commands in each subsystem perform similar tasks. The first
page of Chapter 6, “Programming Commands” lists where each subsystem is
documented.
Sending a command
To send a command to the instrument, create a command string from the
commands listed in this book, and place the string in your program language’s
output statement. For example, the following string places marker1 on the
peak of the active trace:
sendMessaage”CALCulate:MARKer1:MAXimum”
Table 5-3. Syntax Notation Conventions
Convention
Description
::=
Means
is defined as.
|
Indicates a choice of one element from a list. For example, A | B indicates A or
B, but not both.
[ ]
Indicates the enclosed item is optional.
{ }
Indicates the enclosed item can be incorporated in the command several
times, once, or not at all.
<file_name>
File names must conform to standard MS-DOS®
a
file naming conventions.
a. MS-DOS is a U.S. registered trademark of Microsoft Corporation.
<trace_name>
TRA, TRB, TRC, TRD, TRE, TRF
<data_block>
This parameter represents the arbitrary block program data as defined by IEEE
488.2. Arbitrary block program data allows any 8-bit bytes to be transmitted.
This includes extended ASCII control codes and symbols. Two types of data
blocks are defined: definite-length blocks and indefinite-length blocks.
The
definite-length block
consists of a “#” character, followed by one digit
(in ASCII) specifying the number of length bytes to follow, followed by the
length (in ASCII), followed by length bytes of binary data. For example, two
bytes of binary data would be sent as follows:
#12<8 bit data byte><8 bit data byte>
The
indefinite-length block
consists of a “#” character, followed by a “0”
character (in ASCII), followed by any number of bytes of binary data. The data
stream is terminated by a new line character with EOI set. For example, two
bytes of binary data would be sent as follows:
#0<8 bit data byte><8 bit data byte>NL^EOI
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com