
Chapter 2
67
Programming Fundamentals
SCPI Language Basics
Putting Multiple Commands on the Same Line
Multiple commands can be written on the same line. This can be used
to provide a shorter notation for sending a series of related commands
in the same subsystem. Commands for different subsystems can be put
on the same line but this can make your program harder to understand.
To put commands on the same line:
• Commands must be separated with a semicolon (;).
• If the commands are in different subsystems, the keyword for the
new subsystem must be preceded by a colon(:).
• If the commands are in the same subsystem, the full hierarchy of the
command keywords need not be included. The second command can
start at the same keyword level as the command that was just
executed.
The following are some examples of good and bad commands. The
examples are created from a theoretical instrument with the simple set
of commands indicated below:
INPut
:ATTenuation
TRIGger
:AUTO
:HOLDoff
:LEVel
:ADC
[:EXTernal]
:BURSt
[SENSe]
:FREQuency
:POWer
:ATTenuation
[:LEVel]
[:IMMediate]
[:AMPLitude]
:OFFSet
:HIGH
:LOW
:TRIGgered
Содержание E4406A VSA Series
Страница 4: ...4 ...
Страница 59: ...59 2 Programming Fundamentals ...
Страница 76: ...76 Chapter2 Programming Fundamentals Using the Instrument Status Registers Overall Status Register System ...
Страница 124: ...124 Chapter2 Programming Fundamentals Using the LAN to Control the Analyzer ...
Страница 125: ...125 3 Programming Examples ...
Страница 164: ...164 Chapter3 Programming Examples Using Java Programming Over Socket LAN ...
Страница 165: ...165 4 Programming Command Cross References ...
Страница 379: ...379 6 Error Messages ...
Страница 412: ...412 Chapter6 Error Messages Error Message Descriptions ...