Model 2657A High Power System SourceMeter® Instrument Reference Manual Table of Contents
2657A-901-01 Rev. B/December 2012 v
Using Test Script Builder (TSB) .............................................................................................. 6-30

Project navigator ..................................................................................................................... 6-31
Script editor ............................................................................................................................. 6-32
Outline view ............................................................................................................................. 6-32
Programming interaction ......................................................................................................... 6-33
Password management ..................................................................................................... 6-33
Password overview ................................................................................................................. 6-34
Device identification indicator ............................................................................................ 6-35
Working with TSB Embedded ............................................................................................ 6-36
Sending instrument commands with TSB Embedded ............................................................. 6-37
Advanced scripting for TSP ............................................................................................... 6-38
Global variables and the script.user.scripts table .................................................................... 6-38
Create a script using the script.new() command ..................................................................... 6-39
Rename a script ...................................................................................................................... 6-42
Retrieve a user script .............................................................................................................. 6-44
Delete user scripts from the instrument ................................................................................... 6-46
Restore a script to the run-time environment .......................................................................... 6-47
Memory considerations for the run-time environment ............................................................. 6-47
TSP-Link system expansion interface ................................................................................ 6-49
Overview ................................................................................................................................. 6-49
Connections ............................................................................................................................ 6-50
Initialization ............................................................................................................................. 6-51
Resetting the TSP-Link network .............................................................................................. 6-52
Using the expanded system .................................................................................................... 6-53
TSP advanced features ........................................................................................................... 6-54
TSP-Net ............................................................................................................................. 6-61
Overview ................................................................................................................................. 6-61
TSP-Net compared to TSP-Link to communicate with TSP-enabled devices ......................... 6-61
TSP-Net capabilities ................................................................................................................ 6-61
Using TSP-Net with any ethernet-enabled device ................................................................... 6-62
Remote instrument errors ....................................................................................................... 6-63
TSP-Net instrument commands: General device control ........................................................ 6-63
TSP-Net instrument commands: TSP-enabled device control ................................................ 6-64
Example: Using tspnet commands .......................................................................................... 6-64
TSP command reference ............................................................................................ 7-1
TSP command programming notes ..................................................................................... 7-1
Placeholder text ........................................................................................................................ 7-1
Syntax rules .............................................................................................................................. 7-2
Time and date values ................................................................................................................ 7-3
Remote versus local state ......................................................................................................... 7-3
Using the TSP command reference ..................................................................................... 7-4
Command name and summary table ........................................................................................ 7-5
Command usage ....................................................................................................................... 7-6
Command details ...................................................................................................................... 7-6
Example section ........................................................................................................................ 7-6
Related commands and information .......................................................................................... 7-7
TSP commands .................................................................................................................... 7-8
beeper.beep() ............................................................................................................................ 7-8
beeper.enable ........................................................................................................................... 7-8
bit.bitand() ................................................................................................................................. 7-9
bit.bitor() .................................................................................................................................... 7-9
bit.bitxor() ................................................................................................................................ 7-10
bit.clear() ................................................................................................................................. 7-11