
Page 3.26
’***************** Begin example program *****************
CLS ’Clears the PC screen
OPEN "COM1:1200,N,8,1,CS,DS,RB2048" FOR RANDOM AS #1
PRINT #1, "IS" ’Sends the INSTRUMENT STATUS query
GOSUB Acknowledge ’Input acknowledge from ScopeMeter
INPUT #1, Status$ ’Input Instrument Status
StV = VAL(Status$) ’Decimal value of Instrument Status
PRINT "Instrument Status : "; StV
IF (StV AND 1) = 1 THEN PRINT " ScopeMeter in Maintenance mode."
IF (StV AND 2) = 2 THEN PRINT " ScopeMeter charging."
IF (StV AND 4) = 4 THEN PRINT " ScopeMeter recording."
IF (StV AND 8) = 8 THEN PRINT " AutoRanging active"
IF (StV AND 16) = 16 THEN PRINT " ScopeMeter remote."
IF (StV AND 32) = 32 THEN PRINT " Battery connected."
IF (StV AND 64) = 64 THEN PRINT " Power Adapter connected."
IF (StV AND 128) = 128 THEN PRINT " Calibration necessary."
IF (StV AND 256) = 256 THEN PRINT " ScopeMeter in HOLD."
IF (StV AND 512) = 512 THEN PRINT " Pre-calibration busy."
IF (StV AND 1024) = 1024 THEN PRINT " Pre-calibration valid."
IF (StV AND 2048) = 2048 THEN PRINT " Replay-buffer full."
IF (StV AND 4096) = 4096 THEN PRINT " ScopeMeter triggered."
IF (StV AND 8192) = 8192 THEN
PRINT " ScopeMeter On."
ELSE
PRINT " ScopeMeter Off."
END IF
IF (StV AND 16384) = 16384 THEN PRINT " Reset Instrument occurred."
END
’
Содержание 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...