Fluke Hydra Series II User Manual page 165

Data bucket
Table of Contents

Advertisement

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)"
'
"?>(CR)(LF)"
'
"!>(CR)(LF)"
PROMPT$ = INPUT$(4, #1)
IF INSTR(1, PROMPT$, "=>") <> 0 THEN RETURN
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
(command successful)
(command syntax error)
(command execution error)
Figure 4-6. Sample Program (QBASIC) (3 of 3)
Computer Operations
Computer Interface Commands and Operation
' Get prompt
'Command successful
4
op52_3f.eps
4-61

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

2635a

Table of Contents