Output Command; Device Address; Instruction Header - HP 1650B Programming Reference Manual

Logic analyzers
Table of Contents

Advertisement

Output Command

Device Address

instructions

Instruction Header

HP 1650B/HP 16518
Programming Reference
The output command is entirely dependant on the language you choose to
use. Throughout this manual HP 9000 Series 200/300 BASIC 4.0 is used in
the programmin g examples. People using another language will need to
CLEAR in order to convert the examples. The instructions for the
HP 1650B/51B are always shown between the double-quotes.
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 (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.
The instruction header is one or more keywords separated by colons (:).
The command tree in figure 4-l (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.
introduction to Programming an Instrument
1-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

1651b

Table of Contents