64
Chapter 2
Programming Fundamentals
SCPI Language Basics
Parameters in Commands
There are four basic types of parameters: booleans, keywords, variables
and arbitrary block program data.
ON|OFF|0|1 This is a two state boolean-type parameter. The
numeric value 0 is equivalent to OFF. Any numeric
value other than 0 is equivalent to ON. The numeric
values of 0 or 1 are commonly used in the command
instead of OFF or ON. Queries of the parameter always
return a numeric value of 0 or 1.
keyword
The keywords that are allowed for a particular
command are defined in the command syntax
description.
Units
Numeric variables may include units. The valid units
for a command depend on the variable type being used.
See the following variable descriptions. The indicated
default units will be used if no units are sent. Units can
follow the numerical value with, or without, a space.
Variable
A variable can be entered in exponential format as well
as standard numeric format. The appropriate range of
the variable and its optional units are defined in the
command description.
The following keywords may also be used in commands,
but not all commands allow keyword variables.
DEFault - resets the parameter to its default value.
UP - increments the parameter.
DOWN - decrements the parameter.
The numeric value associated with DEFault can be
queried by adding the keyword to the command in its
query form. The keyword must be entered following the
question mark.
Example query:
SENSE:FREQ:CENTER? DEFAULT
Variable Parameters
<freq>
<bandwidth>
A frequency parameter is a positive rational number
followed by optional units. The default unit is Hz.
Acceptable units include: HZ, KHZ, MHZ, GHZ.
<time>
<seconds>
A time parameter is a rational number followed by
optional units. The default units are seconds.
Acceptable units include: S, MS, US.
Summary of Contents for E4406A VSA Series
Page 4: ...4 ...
Page 59: ...59 2 Programming Fundamentals ...
Page 124: ...124 Chapter2 Programming Fundamentals Using the LAN to Control the Analyzer ...
Page 125: ...125 3 Programming Examples ...
Page 164: ...164 Chapter3 Programming Examples Using Java Programming Over Socket LAN ...
Page 165: ...165 4 Programming Command Cross References ...
Page 379: ...379 6 Error Messages ...
Page 412: ...412 Chapter6 Error Messages Error Message Descriptions ...