Model 2601B-PULSE System SourceMeter Instrument Reference Manual Table of contents
Advanced scripting for TSP ............................................................................................. 10-36
Global variables and the script.user.scripts table .................................................................. 10-36
Create a script using the script.new() command ................................................................... 10-37
Rename a script .................................................................................................................... 10-40
Retrieve a user script ............................................................................................................ 10-42
Delete user scripts from the instrument ................................................................................. 10-43
Restore a script to the runtime environment ......................................................................... 10-44
Memory considerations for the runtime environment ............................................................ 10-44
TSP-Link system expansion interface .............................................................................. 10-45
Master and subordinates ....................................................................................................... 10-46
TSP-Link nodes ..................................................................................................................... 10-46
Connections .......................................................................................................................... 10-47
Initialization ........................................................................................................................... 10-47
Resetting the TSP-Link network ............................................................................................ 10-48
Using the expanded system .................................................................................................. 10-49
TSP advanced features ......................................................................................................... 10-51
Using groups to manage nodes on TSP-Link network .......................................................... 10-53
Running simultaneous test scripts ......................................................................................... 10-54
Using the data queue for real-time communication ............................................................... 10-56
Copying test scripts across the TSP-Link network ................................................................ 10-56
Removing stale values from the reading buffer cache .......................................................... 10-57
TSP-Net ........................................................................................................................... 10-58
TSP-Net capabilities .............................................................................................................. 10-58
Using TSP-Net with any ethernet-enabled instrument .......................................................... 10-58
TSP-Net compared to TSP-Link to communicate with TSP-enabled devices ....................... 10-60
TSP-Net instrument commands: General device control ...................................................... 10-61
TSP-Net instrument commands: TSP-enabled device control .............................................. 10-61
Example: Using tspnet commands ........................................................................................ 10-62
TSP command reference ....................................................................................... 11-1
TSP command programming notes ................................................................................... 11-1
Placeholder text ...................................................................................................................... 11-1
Syntax rules ............................................................................................................................ 11-2
Time and date values .............................................................................................................. 11-2
Settings ignored when the pulser is enabled ........................................................................... 11-3
Settings ignored when the pulser is disabled .......................................................................... 11-3
Using the TSP command reference ................................................................................... 11-4
Command name and summary table ...................................................................................... 11-4
Command usage ..................................................................................................................... 11-6
Command details .................................................................................................................... 11-6
Example section ...................................................................................................................... 11-7
Related commands and information ........................................................................................ 11-7
TSP commands .................................................................................................................. 11-8
beeper.beep() .......................................................................................................................... 11-8
beeper.enable ......................................................................................................................... 11-8
bit.bitand() ............................................................................................................................... 11-9
bit.bitor() ................................................................................................................................ 11-10
bit.bitxor() .............................................................................................................................. 11-10
bit.clear() ............................................................................................................................... 11-11
bit.get() .................................................................................................................................. 11-12
bit.getfield() ........................................................................................................................... 11-13
bit.set() .................................................................................................................................. 11-14
bit.setfield()............................................................................................................................ 11-15
bit.test() ................................................................................................................................. 11-16
bit.toggle() ............................................................................................................................. 11-17
bufferVar.appendmode ......................................................................................................... 11-17