Technical data
SCPI Basics 6
Agilent N8211A/N8212A Performance Upconverter Synthetic Instrument Module, 250 kHz to 20 / 40 GHz 163
The following are examples of string response data:
Program Messages
The following commands will be used to demonstrate the creation of program messages:
Example 1
:FREQuency:STARt 500MHZ;STOP 1000MHZ
This program message is correct and will not cause errors; STARt and STOP are at the
same path level. It is equivalent to sending the following message:
FREQuency:STARt 500MHZ;FREQuency:STOP 1000MHZ
Example 2
:POWer 10DBM;:OFFSet 5DB
This program message will result in an error. The message makes use of the default
POWer[:LEVel] node (root command). When using a default node, there is no change to
the current path position. Since there is no command OFFSet at the root level, an error
results.
The following example shows the correct syntax for this program message:
:POWer 10DBM;:POWer:OFFSet 5DB
Example 3
:POWer:OFFSet 5DB;POWer 10DBM
This program message results in a command error. The path is dropped one level at each
colon. The first half of the message drops the command path to the lower level command
OFFSet; POWer does not exist at this level.
"This is a string"
"one double quote inside brackets: [""]"
"Hello!"
[:SOURce]:FREQuency:STARt [:SOURce]:FREQuency:STOP
[:SOURce]:FREQuency[:CW] [:SOURce]:POWer[:LEVel]:OFFSet