
3-4 IM 704510-17E
3.2 Commands/3.3 Responses
•When Separating Commands with <PMT>
If a terminator is used to separate two commands,
each command is a separate message. Therefore,
the common header must be specified for each
command even when commands belonging to the
same command group are being concatenated.
Example :MEASURE:MODE TSTAMP<PMT>:
MEASURE:FUNCTION PERIOD,A<PMT>
Upper-level Query
An upper-level query is a query in which a question
mark (?) is appended to the highest level command of
a group. Execution of an upper-level query allows all
settings that can be specified in the group to be
received at once. Some query groups which are
comprised of more than three hierarchical levels can
output all the lower level settings.
Example :MEASURE?<PMT> -> :MEASURE:
MODE HHISTOGRAM;
FUNCTION PERIOD,A;SLOPE RISE
The response to an upper-level query can be
transmitted as a program message back to the
instrument. In this way, the settings that existed when
the upper-level query was made can be restored.
However, some upper-level queries will not return setup
information that is not currently in use. It is important to
remember that not all the group’s information is
necessarily returned as part of a response.
Header Interpretation Rules
The instrument interprets the header that is received
according to the rules below.
•Mnemonics are not case sensitive.
Example MEASure can be also written as
measure or Measure.
•The lower-case section of the header can be omitted.
Example MEASure can also be written as MEASU
or MEAS
• The question mark (?) at the end of a header
indicates that it is a query. The question mark (?)
cannot be omitted.
Example The shortest abbreviation for
“MEASure?” is “MEAS?.”
• If the <x> (value) at the end of a mnemonic is
omitted, it is interpreted as a 1.
Example If WINDow<x> is written as WIND, this
represents WINDow1.
•The section enclosed by braces ([]) can be omitted.
Example :CALCulation[:WINDow1]:
AVERage? can be written as
:CALCulation:AVERage?.
However, the last section enclosed by braces ([])
cannot be omitted in an upper-level query.
3.3 Responses
When the controller sends a message unit that has a
question mark (?) in its program header (query), the
instrument returns a response message to the query.
A response message is returned in one of the following
two forms.
•Response consisting of a header and data
If the response can be used as a program message
without any change, it is returned with a command
header attached.
Example :SAMPLE:GATE:MODE?<PMT> ->
:SAMPLE:GATE:MODE EVENT<RMT>
•Response consisting of data only
If the response cannot be used as a program
message unless changes are made to it (query-only
command), only the data section is returned.
However, there are query-only commands that
return responses with the header attached.
Example :STATUS:ERROR?<PMT> ->
0,”NO ERROR”<RMT>
•When You Wish to Return a Response without a
Header
Responses that return both header and data can be
set so that only the data section is returned. The
“:COMMunicate:HEADer” command is used to do
this.
•Abbreviated Form
Normally, the lower-case section is removed from a
response header before the response is returned to
the controller. Naturally, the full form of the header
can also be used. For this, the
“:COMMunicate:VERBose” command is used.