Queries; Syntax Conventions - Keysight Technologies BT2152A Operating And Service Manual

Keysight bt2152a self-discharge analyzer
Hide thumbs Also See for BT2152A:
Table of Contents

Advertisement

In the above examples, INIT and INITiate are both acceptable forms. You can use upper- or lower-
case letters. Therefore, INITIATE, init, and Init are all acceptable. Other forms such as INITiat, are not
valid and will generate an error.

Queries

Following a keyword with a question mark ( ? ) turns it into a query (Example:
FETCh:CURRent:LATest?). If a query contains parameters, place the query indicator at the end of the
last keyword, before the parameters. Insert a space between the query indicator and the first
parameter.
You can query the programmed value of most parameters. For example, you can query the latest
current reading by sending:
FETCh:CURRent:LATest? (@1)
You must 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.

Syntax Conventions

Colons ( : ) separate keyword levels. Blank spaces must be used to separate command parameters
l
from their corresponding keyword. Note the space between VALue and the <voltage> parameter. If a
command requires more than one parameter, use a comma to separate adjacent parameters. In the fol-
lowing calibration command, the voltage and current value parameters must be separated with a
comma.
CALibration:VALue <voltage>, <current>
Triangle brackets ( < > ) indicate that you must specify a value for the enclosed parameter. In the
l
example above, the < voltage > parameter is enclosed in triangle brackets. The brackets are not sent
with the command string. You must specify a value for the parameter.
A vertical bar ( | ) separates multiple parameter choices for a given command string.
l
Square brackets ( [ ] ) enclose some syntax elements - nodes and parameters for example. This indic-
l
ates that the element is optional and can be omitted. The brackets are not sent with the command
string. Any keyword enclosed in brackets is optional and can be omitted. However, if you are com-
bining several commands within the same message string, you must include the optional commands
to place the command parser at the correct level in the hierarchy.
Keysight BT2152A Operating and Service Guide
4 Programming Reference
45

Advertisement

Table of Contents
loading

Table of Contents