
Page 3.30
=============================================================
PROGRAM SETUP PS
-------------------------------------------------------------
Purpose:
Restores a complete setup, previously saved with the SS
(Save Setup) command and queried with the QS (Query Setup)
command and saved in a string variable or to a file.
<Command 1> -> <Response 1> -> <Command 2> -> <Response 2>
Command Syntax 1:
PS [<saved_setup_no>]<cr>
where,
<saved_setup_no> = 0 : Actual setup
Response Syntax 1:
<acknowledge><cr>
Command Syntax 2:
<queried_setup><cr>
<queried_setup> = The data returned with the QS command.
(omit the <acknowledge><cr> response).
Response Syntax 2:
<acknowledge><cr>
Note: Wait for at least two seconds after the
<acknowledge> reply has been received, to let
the ScopeMeter settle itself before you send the
next command.
Remarks:
The ScopeMeter sends the <acknowledge> reply
after it has executed the setup from the PS command.
You must send the <setup> string as a whole, exactly as
returned from the QS (Query Setup) command.
If you do not follow this rule, the ScopeMeter
may crash. A Reset may then be necessary to recover
the ScopeMeter. (Refer to the ScopeMeter Users Manual.)
Example:
The following example program demonstrates the use of the
QS (QUERY SETUP) and the PS (PROGRAM SETUP) commands.
The present setup is queried from ScopeMeter and saved to
file. The program asks you to change the ScopeMeter settings.
Then the original setup is read from file and sent back
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...