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)
Summary of Contents for 2635A
Page 8: ...2635A Users Manual vi...
Page 26: ...2635A Users Manual xxiv...
Page 29: ...Preparation for Use Introduction 1 1 3...
Page 50: ...2635A Users Manual 1 24...
Page 53: ...Front Panel Operations Summary of Front Panel Operations 2 2 3...
Page 88: ...2635A Users Manual 2 38...
Page 180: ...2635A Users Manual 5 10...
Page 212: ......
Page 234: ...2635A Users Manual B 4...
Page 250: ...2635A Users Manual D 8...
Page 251: ...E 1 Appendix E 8 Bit Binary Coded Decimal Table...
Page 264: ...Hydra Memory Card Record DATA FILES SET UP FILES DATxx Application Note SETxx Application Note...
Page 268: ...2635A Users Manual 4...