When there are more than one data parameter, they are separated by
commas (,). Spaces can be added around the commas to improve readability.
Header Types
There are three types of headers:
•
Simple command headers
•
Compound command headers
•
Common command headers
Simple command header
Simple command headers contain a single
mnemonic. :AUToscale and :DIGitize are examples of simple command
headers typically used in this instrument. The syntax is:
<program mnemonic><terminator>
Simple command headers must occur at the beginning of a program message;
if not, they must be preceded by a colon.
When program data must be included with the simple command header (for
example, :BLANk LCHan0), white space is added to separate the data from
the header. The syntax is:
<program mnemonic><separator><program data><terminator>
Compound command header
Compound command headers are a
combination of two program mnemonics. The first mnemonic selects the
subsystem, and the second mnemonic selects the function within that
subsystem. The mnemonics within the compound message are separated
by colons. For example:
To execute a single function within a subsystem:
:<subsystem>:<function><separator><program data><terminator>
(For example :DISPlay:TEXT BLANk)
Common command header
Common command headers control IEEE
488.2 functions within the instrument (such as clear status). Their
syntax is:
*<command header><terminator>
No space or separator is allowed between the asterisk (*) and the command
header. *CLS is an example of a common command header.
Introduction to Programming
Program message syntax
14
Содержание 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 ...