Models 707B and 708B Switching Matrix Reference Manual
Section 6: Instrument programming
707B-901-01 Rev. A / August 2010
6-13
Delete user scripts
NOTE
These steps remove a script from nonvolatile memory. To completely remove a script from the
system, there are additional steps you must take. See
Delete user scripts from the instrument
(on
You can delete the script from nonvolatile memory by sending either of the following commands:
•
script.delete("
name
")
•
script.user.delete(
"name
")
where
name
is the user-defined name of the script.
If you are using TSB Embedded, to delete a script from nonvolatile memory:
1. In TSB Embedded, select the script from the User Scripts list.
2. Click
Delete
. There is no confirmation message.
Example
Code Output
script.delete("test8")
Delete a user script named "test8" from
nonvolatile memory.
Programming examples
Close channel script
This script closes matrix crosspoints to prepare for actions on other instruments and devices
connected to the switch matrix, then opens closed matrix crosspoints.
NOTE
If you are using TSB Embedded, do not include the
loadscript
and
endscript
commands.
Example
Code Description
loadscript closeChannels
reset()
errorqueue.clear()
channel.exclusiveclose('1C01,1D02')
channel.open('allslots')
endscript
Resets the instrument to its default state.
Clears the error queue.
Closes matrix crosspoints C01 and D02 on the card in
slot 1.
At this point in your code, send commands to perform
actions on other instruments and devices connected to
the switch matrix.
Opens any closed matrix crosspoints in all slots.