
HP
1651B
Programming Reference
Numeric
data. For numeric data, you have the option of using
exponential notation or using suffixes to indicate which unit is being used.
Tables A-l and A-2 in appendix A list all available
Do not
combine an exponent with a unit. The following numbers are all equal:
=
=
=
=
The base of a number is shown with a
The available bases are
(#B), octal
hexadecimal (#H) and decimal (default). For
example,
=
=
=
You may not specify a
base in conjunction with either exponents or unit suffixes. Additionally,
negative numbers must be expressed in decimal.
When a syntax definition specifies that a number is an integer, that means
that the number should be whole. Any fractional part would be ignored,
truncating the number. Numeric parameters which accept fractional
values are called real numbers.
All numbers are expected to be strings of ASCII characters. Thus, when
sending the number 9, you would send a byte representing the ASCII code
for the character
(which is 57, or 00111001 in binary). A three-digit
number like 102 would take up three bytes (ASCII codes
and 50).
This is taken care of automatically when you include the entire instruction
in a string.
String
data. String data may be delimited with either single
or double
quotes. String parameters representing labels are case-sensitive. For
instance, the labels “Bus A” and “bus a” are unique and should not be used
indiscriminately. Also pay attention to the presence of spaces, since they
act as legal characters just like any other. So the labels “In” and
are
also two separate labels.
Keyword
data. In many cases a parameter must be a keyword. The
available keywords are always included with the instruction’s syntax
definition. When sending commands, either the
or shortform (if
one exists) may be used. Upper-case and lower-case letters may be mixed
freely. When receiving responses, upper-case letters will be used
exclusively. The use of
or shortform in a response depends on
the setting you last specified via the SYSTem:LONGform command (see
chapter 6).
Introduction to Programming an instrument
1-9
Содержание 1650B
Страница 2: ......
Страница 16: ......
Страница 40: ......
Страница 48: ......
Страница 58: ......
Страница 74: ......
Страница 76: ...System Commands 6 2 Figure 6 l System Commands Syntax Diagram HP 1650B HP 1651B Programming Reference ...
Страница 112: ......
Страница 128: ......
Страница 134: ......
Страница 160: ......
Страница 184: ... L h E I Figure 13 1 SLlSt Subsystem Syntax Diagram SLIST Subsystem 13 2 HP 165081HP Is5 B Programming Reference ...
Страница 185: ...Figure 13 l SLlSt Subsystem Syntax Diagram continued HP 1650B HP 16518 Programming Reference SLIST Subsystem 13 3 ...
Страница 210: ......
Страница 236: ......
Страница 282: ......
Страница 318: ......
Страница 336: ......
Страница 346: ......