
Agilent B2900 SCPI Command Reference, Edition 2 1- 5
Programming Basics
SCPI Commands
Including Common Commands
You can combine common commands and subsystem commands into a single
message. Treat the common command as a message unit by separating it with a
semicolon (the message unit separator). Common commands do not affect the
header path; you may insert them anywhere in the message.
OUTPut OFF;*RCL 1;OUTPut ON
Using Queries
Observe the following precautions when using queries.
• Add a blank space between the query indicator (?) and any subsequent
parameter such as a channel list.
• Allocate a proper number of variables for the returned data.
• Read back all the results of a query before sending another command to the
instrument. Otherwise, a Query Interrupted error will occur and the unreturned
data will be lost.
Coupled Commands
When commands are coupled, it means that the value sent by one command is
affected by the settings of another command. The following commands are coupled:
[SOURce:]CURRent and [SOURce:]CURRent:RANGe
[SOURce:]VOLTage and [SOURce:]VOLTage:RANGe
If a range command is sent to place an output into a range with a lower maximum
setting than the present level, an error is generated. This also occurs if a level is
programmed with a value too large for the present range.
These types of errors can be avoided by sending both level and range commands as
a set, within the same SCPI message. For example,
VOLTage 10;VOLTage:RANGe 10<NL>
will always be correct because the commands are not executed until the message
terminator is received. Because the range and setting information is received as a
set, no range/setting conflict occurs.
Comments to this Manuals