Table of contents Model 2601B-PULSE System SourceMeter Instrument Reference Manual
Digital I/O .................................................................................................................................. 9-6
Display ...................................................................................................................................... 9-6
Error queue ............................................................................................................................... 9-7
Event log ................................................................................................................................... 9-7
File I/O ...................................................................................................................................... 9-7
GPIB ......................................................................................................................................... 9-8
Instrument identification ............................................................................................................ 9-9
LAN and LXI .............................................................................................................................. 9-9
Miscellaneous ......................................................................................................................... 9-10
Parallel script execution .......................................................................................................... 9-10
Queries and response messages ............................................................................................ 9-11
Reading buffer ......................................................................................................................... 9-11
Reset ....................................................................................................................................... 9-12
RS-232 .................................................................................................................................... 9-12
Saved setups .......................................................................................................................... 9-12
Scripting .................................................................................................................................. 9-12
SMU ........................................................................................................................................ 9-13
Status model ........................................................................................................................... 9-15
Time ........................................................................................................................................ 9-16
Triggering ................................................................................................................................ 9-16
TSP-Link ................................................................................................................................. 9-18
TSP-Net .................................................................................................................................. 9-18
Userstrings .............................................................................................................................. 9-19
Factory scripts .................................................................................................................... 9-19
Running a factory script .......................................................................................................... 9-20
Retrieving and modifying a factory script listing ...................................................................... 9-21
KISweep factory script ............................................................................................................ 9-21
KIHighC factory script ............................................................................................................. 9-21
KIParlib factory script .............................................................................................................. 9-22
KISavebuffer factory script ...................................................................................................... 9-22
Instrument programming ....................................................................................... 10-1
Fundamentals of scripting for TSP ..................................................................................... 10-1
What is a script? ...................................................................................................................... 10-2
Runtime and nonvolatile memory storage of scripts ................................................................ 10-2
What can be included in scripts? ............................................................................................. 10-2
Commands that cannot be used in scripts .............................................................................. 10-3
Manage scripts ........................................................................................................................ 10-3
Working with scripts in nonvolatile memory........................................................................... 10-10
Interactive script example...................................................................................................... 10-12
Fundamentals of programming for TSP ........................................................................... 10-13
What is Lua? ......................................................................................................................... 10-13
Lua basics ............................................................................................................................. 10-13
Standard libraries .................................................................................................................. 10-27
Programming example .......................................................................................................... 10-30
Test Script Builder ............................................................................................................ 10-30
Installing the TSB software.................................................................................................... 10-30
Using Test Script Builder (TSB) ............................................................................................ 10-31
Project navigator ................................................................................................................... 10-32
Script editor ........................................................................................................................... 10-33
Outline view........................................................................................................................... 10-33
Programming interaction ....................................................................................................... 10-34
Password management ................................................................................................... 10-34
Setting the password from a command or web interface ...................................................... 10-34
Unlocking the remote interface .............................................................................................. 10-35
Resetting the password ......................................................................................................... 10-35