Section 6: Instrument programming
2606B System SourceMeter® Instrument Reference Manual
6-36
2606B-901-01 Rev. B / May 2018
Working with TSB Embedded
TSB Embedded is an alternative to the full version of the Test Script Builder (TSB) Suite. The
capabilities of TSB Embedded are similar to TSB. It includes a command line interface that you can
use to send instrument commands and create, modify, and save test scripts to the instrument.
Sending instrument commands with TSB Embedded
The response from the instrument appears in the instrument output area.
To send commands from the command line:
1. Type the command in the Console field.
2. Press the
Enter
key.
To clear the instrument output area, click
Clear
to clear the instrument output area.
To create a new script:
1. Click in the script editor area and then type the first line of your script. Then press the
Enter
key
to advance to line 2.
2. In the TSP Script field, type the name of the script and then click
Save Script
.
The instrument validates the syntax and then saves the script to the nonvolatile memory.
To remove the code from the script editor:
Click the
Clear
button that is above the editor.
To run a script:
1. Select a script from the User Scripts area.
2. Click
Run
.
To stop a running script:
Click
Abort Script
.
You cannot retrieve a deleted script. Be sure to back up your script to your computer before deleting.
To delete a script from TSB embedded:
1. Select the script from the User Scripts area.
2. Click
Delete
.
To modify a script:
1. Select the script from the User Scripts area.
2. Modify the code in the script editor.
3. Click
Save Script
to validate the syntax and save the script.
4. A confirmation message is displayed. Click
OK
to save the script.
To export a script to your computer:
1. To export a script, click the name of the script in the User Scripts area.
2. Click
Export to PC
. The Save dialog box is displayed.
3. Go to the directory in the
Look In
list.
4. In the
File Name
field, type the name of the file, and then click
Save
.