YOKOGAWA WT110 User Manual page 154

Digital power meter
Table of Contents

Advertisement

LOOP WHILE LEFT$(BUF$, 3) <> "END"
FOR J = 0 TO 500
NEXT J
IF C$ = "1" THEN
ELSEIF C$ = "0" THEN
END IF
LOOP
RETURN
'
SHUNT:
CMD$ = "CAL2": CALL IBWRT(WT%, CMD$): GOSUB ERRCHK
PRINT "S: Adjustment values of this range will be updated and kept"
PRINT "C: Adjustment values of this range will not be kept"
DO
CMD$ = "OD": CALL IBWRT(WT%, CMD$): GOSUB ERRCHK
LOCATE 15, 1
BUF$ = SPACE$(255)
DO
LOOP WHILE LEFT$(BUF$, 3) <> "END"
FOR J = 0 TO 500
NEXT J
IF C$ = "S" THEN
ELSEIF C$ = "C" THEN
END IF
LOOP
RETURN
'
' When IBFIND call failed
ERRDISP:
PRINT " ===== No such board or device name ===== "
GOTO PRGEND
'
' GP-IB error check
ERRCHK:
IF IBSTA% >= 0 THEN RETURN
PRINT " ===== Error ===== "
GOTO PRGEND
IM 253401-01E
CALL IBRD(WT%, BUF$): GOSUB ERRCHK
PRINT LEFT$(BUF$, IBCNT% - 2)
C$ = INKEY$: IF C$ <> "" THEN PRINT C$: EXIT FOR
CMD$ = "ENT": CALL IBWRT(WT%, CMD$): GOSUB ERRCHK: EXIT DO
EXIT DO
CALL IBRD(WT%, BUF$): GOSUB ERRCHK
PRINT LEFT$(BUF$, IBCNT% - 2)
C$ = INKEY$: IF C$ <> "" THEN PRINT C$: EXIT FOR
CMD$ = "ENT": CALL IBWRT(WT%, CMD$): GOSUB ERRCHK
CMD$ = "END": CALL IBWRT(WT%, CMD$): GOSUB ERRCHK
EXIT DO
CMD$ = "CAN": CALL IBWRT(WT%, CMD$): GOSUB ERRCHK
EXIT DO
Appendix 1.2 Sample Program
App1-13
App

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wt130

Table of Contents