
White Space
Instruction Parameters
Header Types
When you look up a query in this programming reference, you’ll
a
paragraph labeled “Returned Format” under the one labeled “Query
Syntax” The syntax definition by “Returned format” will always show the
instruction header in square brackets,
like
What this
really means is that the text between the brackets is optional, but it’s also a
quick way to see what the header looks like.
White space is used to separate the instruction header from the
instruction parameters. If the instruction does not use any parameters,
you do not need to include any white space. White space is defined as one
or more spaces. ASCII defines a space to be character 32 (in decimal).
Tabs can used only if your controller first converts them to space
characters before sending the string to the instrument.
Instruction parameters are used to clarify the meaning of the command or
query. They provide necessary data, such as whether a function should be
on or off, which waveform is to be displayed, or which pattern is to be
looked for. Each instruction’s syntax definition shows the parameters, as
well as the values they accept. This chapter’s “Parameter Syntax Rules”
section has all of the general rules about acceptable values.
When an instruction has more than one parameter they are separated by
commas
You are allowed to include spaces around the commas.
There are three types of headers: Simple Command; Compound
Command; and Common Command.
Simple Command Header.
Simple command headers contain a single
keyword. START and STOP are examples of simple command headers
typically used in this instrument. The syntax
<function <terminator
When parameters (indicated by c data
must be included with the
simple command header (for example, :RMODE SINGLE) the syntax is:
<function
white space data c terminator
Compound Command Header.
Compound command headers are a
combination of two or more program keywords. The first keyword selects
the subsystem, and the last keyword selects the function within that
Introduction to Programming an instrument
HP
16518
1-4
Programming Reference
Содержание 1650B
Страница 2: ......
Страница 16: ......
Страница 40: ......
Страница 48: ......
Страница 58: ......
Страница 74: ......
Страница 76: ...System Commands 6 2 Figure 6 l System Commands Syntax Diagram HP 1650B HP 1651B Programming Reference ...
Страница 112: ......
Страница 128: ......
Страница 134: ......
Страница 160: ......
Страница 184: ... L h E I Figure 13 1 SLlSt Subsystem Syntax Diagram SLIST Subsystem 13 2 HP 165081HP Is5 B Programming Reference ...
Страница 185: ...Figure 13 l SLlSt Subsystem Syntax Diagram continued HP 1650B HP 16518 Programming Reference SLIST Subsystem 13 3 ...
Страница 210: ......
Страница 236: ......
Страница 282: ......
Страница 318: ......
Страница 336: ......
Страница 346: ......