
’ Page 3.31
’***************** Begin example program *****************
OPEN "COM1:1200,N,8,1,CS,DS,RB2048" FOR RANDOM AS #1
CLS
GOSUB ClearPort ’Clears pending data from port.
PRINT #1, "QS" ’Queries the actual setup data.
GOSUB Acknowledge ’Input acknowledge from ScopeMeter.
GOSUB Response ’Writes the setup data to file.
PRINT "Present setup data are stored in the file SETUP0"
PRINT "This setup will now be retrieved from the file and"
PRINT "sent back to the ScopeMeter."
PRINT "To see if this works, change the present settings and"
PRINT "verify if the ScopeMeter returns to the previous"
PRINT "settings."
PRINT
PRINT "Press any key on the PC keyboard to continue."
SLEEP
CLS
PRINT #1, "PS" ’Program header for programming
’the setup data to the ScopeMeter.
GOSUB Acknowledge ’Input acknowledge from ScopeMeter.
OPEN "SETUP0" FOR INPUT AS #2
’Opens file SETUP0 for data retrieval.
DO WHILE NOT EOF(2)
SUCHR$ = INPUT$(1, #2) ’Reads setup data from file
PRINT #1, SUCHR$; ’Programs ScopeMeter with the"
’setup data stored in SETUP0$.
LOOP
PRINT #1, CHR$(13); ’Program message terminator
CLOSE #2 ’Close file SETUP0.
GOSUB Acknowledge ’Input acknowledge from ScopeMeter.
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...