HP (Hewlett-Packard) 16500C Sander User Manual


 
Response Header Options
The format of the returned ASCII string depends on the current settings of
the SYSTEM HEADER and LONGFORM commands. The general format is
<instruction_header><space><data><terminator>
The header identifies the data that follows (the parameters) and is controlled
by issuing a :SYSTEM:HEADER ON/OFF command. If the state of the
header command is OFF, only the data is returned by the query.
The format of the header is controlled by the :SYSTEM:LONGFORM
command. If long form is OFF , the header will be in its short form and the
header will vary in length, depending on the particular query. The separator
between the header and the data always consists of one space.
A command or query may be sent in either long form or short form, or in any
combination of long form and short form. The HEADER and LONGFORM
commands only control the format of the returned data and they have no
affect on the way commands are sent.
Example The following examples show some possible responses for a
:SELECT 2:MACHINE1:SFORMAT:THRESHOLD2? query:
with HEADER OFF:
<data><terminator>
with HEADER ON and LONGFORM OFF:
:SEL 2:MACH1:SFOR:THR2<white_space><data><terminator>
with HEADER ON and LONGFORM ON:
:SELECT 2:MACHINE1:SFORMAT:THRESHOLD2<white_space>
<data><terminator>
See Also Chapter 11, "SYSTem Subsystem" for information on turning the HEADER
and LONGFORM commands on and off.
Introduction to Programming
Response Header Options
1–17