3 - 78 USING THE COMBISCOPE INSTRUMENTS
3.16 Saving/Restoring Instrument Setups
This level of programming involves all functions in the CombiScopes instruments,
i.e., complete instrument setups are processed. This allows you to program one
or more functions that are not individually programmable. The following
possibilities can be programmed:
•
Restoring initial settings.
•
Saving/restoring complete setups via internal memory.
•
Saving/restoring complete or partical setups via the GPIB controller.
3.16.1 How to restore initial settings
Initial settings can be restored by sending the
*
RST command. This resets the
instrument-specific functions to a default state and selects the digital mode.
PROGRAM EXAMPLE:
CALL Send(0, 8, "
*
RST", 1)
’
Resets the instrument (for reset values, refer to the
*
RST command in the command reference)
.
3.16.2 How to save/restore a setup via instrument memory
Complete instrument setups can be stored and recalled via one of the internal
memories of the CombiScope instrument. The settings in recall memory 0 are the
initial settings. The settings in the recall memories 1 through 10 are user
programmable.
PROGRAM EXAMPLE:
CALL Send(0, 8, "
*
SAV 3", 1) ’
Saves the complete instrument setup into memory 3
.
CALL Send(0, 8, "
*
RCL 3", 1) ’
Recalls the complete instrument setup from memory 3
.
3.16.3 How to save/restore a setup via the GPIB controller
Complete instrument setups or a part of the setup (node) can be stored and
recalled via the external memory of the controller using the SYSTem:SET?
<node> query (store setup) and SYSTem:SET command (recall setup).
PROGRAM EXAMPLE:
DIM settings AS STRING
*
350 ’
Reserves space for instrument settings
CALL Send(0, 8, "SYSTem:SET?", 1) ’
Queries for the complete instrument setup
’
'(no <node> parameter specified)
CALL Receive(0, 8, settings$, 256) ’
Reads the instrument settings
length = IBCNT% ’
IBCNT% = number of settings bytes
CALL Send(0, 8, "SYSTem:SET ", 0) ’
Sends the command header (note the space)
’
EOI checking disabled (0)
CALL Send(0, 8, LEFT$(settings$, length), 1) ’
Sends the instrument settings
’
EOI checking enabled (1)