63
6.3.2
Command Syntax
6.3.2.1 Command Key Words and Argument
There are two types of common commands and SCPI commands: command with and without argument. Below
are some examples:
*RST
without argument
:FORMat
<name>
with argument(name)
:IMMediate
without argument
There should be at least one space between the command keyword and the argument.
1. []
Some command words are placed in square brackets, meaning that these command words are optional.
You cannot write this information while writing a program. E.g:
:RANGe[:UPPer] <n>
This square bracket indicates: UPPer is optional, don’t have to use it. Thus the above command can be
sent in the following two ways:
:RANGe <n> or :RANGe:UPPer <n>
Note: Do not use square brackets ([]) when using optional commands.
2. <>
Use angle brackets to indicate a argument type.Angle brackets (<>) are not included when writing a
program, for example: :HOLD:STATe <b>
The <b> argument indicates that this is a Boolean type parameter, therefore, if you turn on the HOLD
function, you must send an argument command with ON or 1, as below:
:HOLD:STATe ON or :HOLD:STATe 1
6.3.2.2
Command Separator
1
(
:
)
The colon is used to separate the command keyword from the next level of keywords.
HOLD:STATe
ON
2
(
;
)
A semicolon is used to separate multiple commands from the same subsystem.
TRIG: SOUREXT; COUNT 10 has the same effect as sending the following two commands:
TRIG:SOUREXT
TRIG:COUNT 10
Summary of Contents for TH7105
Page 14: ...9...