Computer Operations
Computer Interface Commands and Operation
4
4-61
CheckResponse:
' CHECKRESPONSE Subroutine
' This subroutine checks the Hydra prompt after sending a command to
' Hydra, to see if an error occurred
' The possible responses are:
' "=>(CR)(LF)" (command successful)
' "?>(CR)(LF)" (command syntax error)
' "!>(CR)(LF)" (command execution error)
PROMPT$ = INPUT$(4, #1) ' Get prompt
IF INSTR(1, PROMPT$, "=>") <> 0 THEN RETURN 'Command successful
IF INSTR(1, PROMPT$, "?>") <> 0 THEN
PRINT "Command Syntax Error!"
ELSEIF INSTR(1, PROMPT$, "!>") <> 0 THEN
PRINT "Command Execution Error!"
END IF
PRINT "Program execution halted due to communications errors"
END
op52_3f.eps
Figure 4-6. Sample Program (QBASIC) (3 of 3)
Содержание 2635A
Страница 8: ...2635A Users Manual vi...
Страница 26: ...2635A Users Manual xxiv...
Страница 29: ...Preparation for Use Introduction 1 1 3...
Страница 50: ...2635A Users Manual 1 24...
Страница 53: ...Front Panel Operations Summary of Front Panel Operations 2 2 3...
Страница 88: ...2635A Users Manual 2 38...
Страница 180: ...2635A Users Manual 5 10...
Страница 212: ......
Страница 234: ...2635A Users Manual B 4...
Страница 250: ...2635A Users Manual D 8...
Страница 251: ...E 1 Appendix E 8 Bit Binary Coded Decimal Table...
Страница 264: ...Hydra Memory Card Record DATA FILES SET UP FILES DATxx Application Note SETxx Application Note...
Страница 268: ...2635A Users Manual 4...