
’the block again)
GOSUB Acknowledge ’Input acknowledge from ScopeMeter.
CLOSE ’Close all files.
PRINT "Program aborted."
END
END IF
BytesToReceive& = BytesToReceive& - BlockLength&
RETURN
’**************** Acknowledge subroutine ******************
’Use this subroutine after each command or query sent to the
’ScopeMeter. This routine inputs the acknowledge
’response from the ScopeMeter. If the response is non-zero,
’the previous command was not correct or was not correctly
’received by the ScopeMeter. Then an error message is
’displayed and the program is aborted.
Acknowledge:
INPUT #1, ACK ’Reads acknowledge from ScopeMeter.
IF ACK <> 0 THEN
PRINT "Error "; ACK; ": ";
SELECT CASE ACK
CASE 1
PRINT "Syntax Error"
CASE 2
PRINT "Execution Error"
CASE 3
PRINT "Synchronization Error"
CASE 4
PRINT "Communication Error"
CASE IS < 1
PRINT "Unknown Acknowledge"
CASE IS > 4
PRINT "Unknown Acknowledge"
END SELECT
CLOSE ’Close all files.
PRINT "Program aborted."
END
END IF
RETURN
’****************** End example program ******************
Содержание ScopeMeter 190 Series
Страница 40: ...Page 3 29 Response Syntax acknowledge cr See an example for this command under QUERY PRINT QP...
Страница 42: ...to the ScopeMeter...
Страница 64: ......
Страница 68: ...Resp Count Resp Count 2 PRINT x_divisions X Divisions...
Страница 70: ...PRINT x_step X Step...
Страница 72: ...nb nb ASC MID Resp Resp Count 1 1 ELSE...
Страница 74: ......
Страница 76: ...PRINT SumCheck so far MOD 256 SumCheck1 MOD 256 CLOSE END...
Страница 78: ...END IF...
Страница 80: ...END IF NEXT j...
Страница 83: ...Resp Count Resp Count Sample Bytes...
Страница 93: ...END IF RETURN End example program...
Страница 117: ...overload sample_value This field specifies which value in the trace samples represents the overload value...