Program message syntax
To program the instrument remotely, you must understand the command
format and structure expected by the instrument. The IEEE 488.2 syntax
rules govern how individual elements such as headers, separators, program
data, and terminators may be grouped together to form complete
instructions. Syntax definitions are also given to show how query responses
are formatted. Figure 1 shows the main syntactical parts of a typical program
statement.
Program Message Syntax
Output Command
The output command is entirely dependent on the programming language.
Throughout this manual, HP BASIC is used in most of the individual
command exampless. If you are using other languages, you must find the
equivalents of HP BASIC commands like OUTPUT, ENTER, and CLEAR to
convert the examples. For example, the example progam in chapter 2 is
written in C, and uses the library function IOOUTPUTS to send a command.
The instructions listed in this manual are always enclosed in quotation marks
in the example programs.
Device Address
The location where the device address must be specified also depends on the
programming language you are using. In some languages, this may be
specified outside the output command. In HP BASIC, this is always specified
after the keyword OUTPUT. The examples in this manual assume the logic
analyzer is at device address 707. When writing programs, the address varies
according to how the bus is configured.
Figure 1
Introduction to Programming
Program message syntax
12
Содержание 54620A
Страница 6: ...6 ...
Страница 9: ...1 Introduction to Programming ...
Страница 21: ...2 Programming Getting Started ...
Страница 35: ...3 Programming over HP IB ...
Страница 40: ...40 ...
Страница 41: ...4 Programming over RS 232 C ...
Страница 48: ...48 ...
Страница 49: ...5 Programming and Documentation Conventions ...
Страница 53: ...Programming and Documentation Conventions The command tree 53 ...
Страница 60: ...60 ...
Страница 61: ...6 Status Reporting ...
Страница 63: ...Status Reporting Data Structures Figure 4 Status Reporting 63 ...
Страница 68: ...68 ...
Страница 69: ...7 Installing and Using the Programmer s Reference ...
Страница 76: ...76 ...
Страница 77: ...8 Programmer s Quick Reference ...