
’ Page 3.74
’************** Displays ScopeMeter status *****************
’This subroutine gives you further information if the
’acknowledge reply from the ScopeMeter is non-zero.
Status.display:
PRINT #1, "ST" ’Sends the STATUS query.
GOSUB Acknowledge.Status ’Inputs acknowledge from ScopeMeter.
INPUT #1, STAT ’Inputs status value.
PRINT "Status " + STR$(STAT) + ": ";
IF STAT = 0 THEN PRINT "No error"
IF (STAT AND 1) = 1 THEN PRINT "Illegal Command"
IF (STAT AND 2) = 2 THEN
PRINT "Data format of parameter is wrong"
END IF
IF (STAT AND 4) = 4 THEN PRINT "Parameter out of range"
IF (STAT AND 8) = 8 THEN
PRINT "Invalid command in this CPL interface"
END IF
IF (STAT AND 16) = 16 THEN PRINT "Command not implemented"
IF (STAT AND 32) = 32 THEN
PRINT "Invalid number of parameters"
END IF
IF (STAT AND 64) = 64 THEN
PRINT "Wrong number of data bits"
END IF
IF (STAT AND 512) = 512 THEN
PRINT "Conflicting instrument settings"
END IF
IF (STAT AND 16384) = 16384 THEN
PRINT "Checksum error"
END IF
RETURN
’****************** End example program ******************
Summary of Contents for ScopeMeter 190 Series
Page 40: ...Page 3 29 Response Syntax acknowledge cr See an example for this command under QUERY PRINT QP...
Page 42: ...to the ScopeMeter...
Page 64: ......
Page 68: ...Resp Count Resp Count 2 PRINT x_divisions X Divisions...
Page 70: ...PRINT x_step X Step...
Page 72: ...nb nb ASC MID Resp Resp Count 1 1 ELSE...
Page 74: ......
Page 76: ...PRINT SumCheck so far MOD 256 SumCheck1 MOD 256 CLOSE END...
Page 78: ...END IF...
Page 80: ...END IF NEXT j...
Page 83: ...Resp Count Resp Count Sample Bytes...