
Output Command
The output command is entirely dependant on the language you choose to
use. Throughout this manual HP 9000 Series
BASIC 4.0 is used in
the programmin g examples. People using another language will need to
the equivalents of BASIC commands like OUTPUT, ENTER and
CLEAR in order to convert the examples. The instructions for the
HP
are always shown between the double-quotes.
Device Address
The location where the device address must be specified is also dependant
on the host language which you are using. In some languages, this could
be specified outside the output command. In BASIC, this is always
specified after the keyword OUTPUT. The examples in this manual use a
generic address of XXX. When writing programs, the number you use
will depend on the cable you use in addition to the actual address. If you
are using an HP-IB, see chapter 2. RS-232C users should refer to
chapter 3.
instructions
Instructions (both commands and queries) normally appear as a string
embedded in a statement of your host language, such as BASIC, Pascal or
C. The only time a parameter is not meant to be expressed as a string is
when the instruction’s syntax definition specifies c block data
. There
are only five instructions which use block data.
Instructions are composed of two main parts: The header, which specifies
the command or query to be sent; and the parameters, which provide
additional data needed to clarify the meaning of the instruction.
Instruction Header
The instruction header is one or more keywords separated by colons
The command tree in
(in chapter 4) illustrates how all the
keywords can be joined together to form a complete header.
The example in figure l-l shows a command. Queries are indicated by
adding a question mark (?) to the end of the header. Many instructions
can be used as either commands or queries, depending on whether or not
you have included the question mark. The command and query forms of
an instruction usually have different parameters. Many queries do not use
any parameters.
HP
16518
Programming Reference
introduction to Programming an Instrument
1-3
Содержание 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: ......