Example

See Also

Introduction to Programming

Response Header Options

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.

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>

Chapter 11, "SYSTem Subsystem" for information on turning the HEADER and LONGFORM commands on and off.

1–17

Page 31
Image 31
HP Sander 16500C Response Header Options, With Header OFF, With Header on and Longform OFF, With Header on and Longform on