![Tektronix 2714 Скачать руководство пользователя страница 240](http://html1.mh-extra.com/html/tektronix/2714/2714_programmers-manual_1077901240.webp)
Programming
6–42
2714 & 2715 Programmer Manual
Next the programmer should use an algorithm similar to the following one to
accept the data entry:
H
Do
KEY?
queries until the result is not
NULL
.
H
Use appropriate error checking to ensure only numeric, decimal point, and
terminator key entries are accepted.
H
Begin building an ASCII string by appending successive key presses to a
string variable, say
VAL$
.
H
Change line 15 of the menu with this command:
DEFMENU L15:"
ENTER REF LEVEL: + VAL$ + _"
H
Loop until the whole number has been entered and a terminator has been
detected.
For example, if the keys [1] [5] [.] and [7] are pressed, the menu display will
appear as shown in Figure 6–6. When a terminator key is pressed, the program
must respond by setting the reference level using the
REF
command:
REF 15.7 DBM
CLRMENU
The
CLRMENU
command automatically exits the menu. If desired, you may
remain in the remote menu by issuing the necessary
DEFMENU
commands to
rewrite the screen.
TEST MENU
0 INIT INSTRUMENT
*1 CHANGE REF LEVEL
(NOW 12.3 DBM)
2 PERFORMANCE TESTS
ENTER REF LEVEL: 15.7_
Y = +DBM
Z= -DBM
Figure 6–6: Specifying a Numeric Value
Содержание 2714
Страница 4: ......
Страница 11: ...Introduction ...
Страница 12: ......
Страница 38: ...Introduction to Programming 1 26 2714 2715 Programmer Manual ...
Страница 39: ...Message Structure ...
Страница 40: ......
Страница 54: ...Instrument Specific Message Structure 2 14 2714 2715 Programmer Manual ...
Страница 55: ...Functional Groups ...
Страница 56: ......
Страница 85: ...Command Query ...
Страница 86: ......
Страница 179: ...Status Reporting ...
Страница 180: ......
Страница 197: ...Programming ...
Страница 198: ......
Страница 266: ...Programming 6 68 2714 2715 Programmer Manual ...
Страница 267: ...Appendices ...
Страница 268: ......
Страница 276: ...Appendix A RS 232 Concepts A 8 2714 2715 Programmer Manual ...
Страница 296: ...Appendix B GPIB System Concepts B 20 2714 2715 Programmer Manual ...
Страница 297: ...Index ...
Страница 298: ......
Страница 307: ......
Страница 308: ......