![HP 54620A Programmer'S Manual Download Page 18](http://html.mh-extra.com/html/hp/54620a/54620a_programmers-manual_161476018.webp)
Program data syntax rules
Program data conveys a variety of types of parameter information related to
the command header. At least one space must separate the command header
or query header from the program data.
<program mnemonic><separator><data><terminator>
When a program mnemonic or query has multiple program data, a comma
separates sequential program data.
<program mnemonic><separator><data>,<data><terminator>
For example, :DISPlay:PIXel 10,12,2 has three program data: 10, 12, and 2.
There are two main types of program data used in commands: character and
numeric program data.
Character Program Data
Character program data conveys parameter information as alpha or
alphanumeric strings. For example, the :TIMebase:MODE command can be
set to normal or delayed. The character program data in this case may be
NORMal or DELayed. The command :TIMebase:MODE DELayed sets the
time base mode to delayed.
The available mnemonics for character program data are always included
with the instruction’s syntax definition. When sending commands, either the
long form or short form (if one exists) may be used. Uppercase and
lowercase letters may be mixed freely. When receiving query responses,
uppercase letters are used exclusively.
Numeric Program Data
Some command headers require program data to be expressed numerically.
For example, :TIMebase:RANGe requires the desired full-scale range to be
expressed numerically.
For numeric program data, you have the option of using exponential notation
or using suffix multipliers to indicate the numeric value. The following
numbers are all equal:
28 = 0.28E2 = 280e-1 = 28000m = 0.028K = 28e-3K
When a syntax definition specifies that a number is an integer, it means that
the number should be whole. Any fractional part would be ignored,
truncating the number. Numeric data parameters that accept fractional
values are called real numbers.
Introduction to Programming
Program data syntax rules
18
Summary of Contents for 54620A
Page 6: ...6 ...
Page 9: ...1 Introduction to Programming ...
Page 21: ...2 Programming Getting Started ...
Page 35: ...3 Programming over HP IB ...
Page 40: ...40 ...
Page 41: ...4 Programming over RS 232 C ...
Page 48: ...48 ...
Page 49: ...5 Programming and Documentation Conventions ...
Page 53: ...Programming and Documentation Conventions The command tree 53 ...
Page 60: ...60 ...
Page 61: ...6 Status Reporting ...
Page 63: ...Status Reporting Data Structures Figure 4 Status Reporting 63 ...
Page 68: ...68 ...
Page 69: ...7 Installing and Using the Programmer s Reference ...
Page 76: ...76 ...