
The following example shows logic analyzer data being returned to a
string variable with headers
10 OUTPUT XXX;":SYSTEM:HEAOER OFF"
20 DIM
30 OUTPUT XXX;"
40 ENTER XXX;Rang$
50 PRINT
60 END
After running this program, the controller displays:
+
Numeric Base
Most numeric data will be returned in the same base as shown on screen.
When the
#B precedes the returned data, the value is in the binary
base. Likewise,
is the octal base and
is the hexadecimal base. If
no
precedes the returned numeric data, then the value is in the
decimal base.
Numeric Variables
If your host language can convert from ASCII to a numeric format, then
you can use numeric variables. Turning off the response headers will help
you avoid accidently trying to convert the header into a number.
The following example shows logic analyzer data being returned to a
numeric variable.
10 OUTPUT XXX;":SYSTEM:HEAOER OFF"
20 OUTPUT XXX;"
30 ENTER
40 PRINT Rang
50 END
This time the format of the number (such as whether or not exponential
notation is used) is dependant upon your host language. In BASIC, the
output would look like:
Introduction to Programming an Instrument
HP
16518
Programming Reference
Содержание 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: ......