Programming Fundamentals
5
N9310A User’s Guide
95
Command Statement Rules Overview
Besides the standard notation of SCPI described in previous
page, SCPI uses the following rules:
• 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)
Take “
:AM:DEPTh <val>
” for example,
Using Valid Commands
The following examples demonstrate valid and invalid
commands.
:
DEPTh
sp
value
No separating space here
This is a separating space
:
AM
:
Example 1
:FREQ:CW 900 MHz
In this example, the keyword short form is used. The command is
correct and will not cause errors.
It is equivalent to front panel key access
Frequency > 900 > MHz
Summary of Contents for Keysight N9310A
Page 34: ...28 N9310A User s Guide 2 Getting Started ...
Page 58: ...52 N9310A User s Guide 3 Using Functions ...
Page 94: ...88 N9310A User s Guide 5 Programming Fundamentals 5 Select Display a list ...
Page 106: ...100 N9310A User s Guide 5 Programming Fundamentals ...
Page 168: ...162 N9310A User s Guide 6 Subsystem Command Reference ...
Page 188: ... Agilent Technologies Inc 2006 Printed in China June 2006 N9310 90001 N9310 90001 ...