HP 83620A, 24A, 22A manual HP-IB Command Statements, Abort, Getting Started Programming

Models: 83620A

1 508
Download 508 pages 6.17 Kb
Page 87
Image 87
HP-IB Command Statements

HP-IB Command Statements

In the programming explanations that follow, specific examples are included that are written in a generic dialect of the BASIC language. BASIC was selected because the majority of HP-IB computers have BASIC language capability. However, other languages can also be used.

Command statements form the nucleus of HP-IB programming; they are understood by all instruments in the network and, when combined with the programming language codes, they provide all management and data communication instructions for the system.

An explanation of the fundamental command statements follows. However, some computers use a slightly different terminology, or support an extended or enhanced version of these commands. Consider the following explanations as a starting point, but

for detailed information consult the BASIC language reference manual, the I/O programming guide, and the HP-IB manual for the particular computer used.

Syntax drawings accompany each statement: All items enclosed by a circle or oval are computer specific terms that must be entered exactly as described; items enclosed in a rectangular box are names of parameters used in the statement; and the arrows indicate a path that generates a valid combination of statement elements.

The eight fundamental command statements are as follows:

Abort

Abort abruptly terminates all listener/talker activity on the interface bus, and prepares all instruments to receive a new command from the controller. Typically, this is an initialization command used to place the bus in a known starting condition. The syntax is:

i n t e r f a c e erlect Cod.2

where the interface select code is the computer’s HP-IB I/O port, which is typically port 7. Some BASIC examples:

10 ABORT7

100 IF V>20 THEN ABORT 7

Related statements used by some computers:

ABORT10 (used by HP-80 series computers)

HALT

RESET

Getting Started Programming 1-57

Page 87
Image 87
HP 83620A, 24A, 22A manual HP-IB Command Statements, Abort, Getting Started Programming