
Model 2657A High Power System SourceMeter® Instrument Reference Manual
Section 6: Instrument programming
2657A-901-01 Rev. B/December 2012
6-9
Delete user scripts
These steps remove a script from nonvolatile memory. To completely remove a script from the
instrument, there are additional steps you must take. See
Delete user scripts from the instrument
To delete a script from nonvolatile memory using a remote interface:
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.
To delete a script from nonvolatile memory using TSB Embedded:
1. In TSB Embedded, select the script from the User Scripts list.
2. Click
Delete
. There is no confirmation message.
Example: Delete a user script from nonvolatile memory
script.delete("test8")
Delete a user script named
test8
from nonvolatile memory.
Programming example
Interactive script
An interactive script prompts the operator to input values using the instrument front panel. The
following example script uses display messages to prompt the operator to:
•
Enter the digital I/O line on which to output a trigger
•
Enter the output trigger pulsewidth
After the output trigger occurs, the front display displays a message to the operator.
When an input prompt is displayed, the script waits until the operator inputs the parameter or presses
the
ENTER
key.
The example shown here assumes that you are using TSB or TSB Embedded. If you are using a
remote interface, you need to add the
loadscript
and
endscript
commands to the example
code. See
Load a script by sending commands over the remote interface
(on page 6-4) for details.
NOTE
Содержание 2657A
Страница 3: ......