Output Command; Deviceaddress; Instructions; Instruction Header - HP 1652B Programming Reference Manual

Logic
Hide thumbs Also See for HP 1652B:
Table of Contents

Advertisement

Output Command

The output command is entirely dependant on the language you choose to
use. Throughout this manual HP !%OO Series 2W300 BASIC 4.0 is used in
the programming examples. People using another language will need to
CLEAR in order to convert the examples. The instructions for the
HP 1652B/53B are always shown between the double-quotes.
Device Address
The location where the device address must be specified is also dependent
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.
are using an HP-IB, see chapter 2. RS-232C users should refer to
chapter 3, "Programming Over RS-232C."

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 <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 figure 4-l illustrates how all the keywords can be
joined together to form a complete header (see chapter 4, "Programming
and Documentation Conventions").
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.
When you look up a query in this programming reference, you'll fmd 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
Introduction to Programming an Instrument
If you
What this
1-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp 1653b

Table of Contents