Models 707B and 708B Switching Matrix Reference Manual
Section 6: Instrument programming
707B-901-01 Rev. A / August 2010
6-35
Example: Create channels with a for loop
User script created in TSB Embedded
User script created in user's own program
loadscript
-- Pseudocard assignment necessary
only
-- if slot is empty
-- slot[1].pseudocard = 7072
for k = 1, 8, 2 do
chan1 =
channel.createspecifier(1, k, 1)
chan2 =
channel.createspecifier(1, k, 2)
print(chan1 .. "," .. chan2)
scan.addimagestep(chan1..","..chan
2)
end
-- Pseudocard assignment necessary only
-- if slot is empty
-- slot[1].pseudocard = 7072
for k = 1,8,2 do
chan1 =
channel.createspecifier(1, k, 1)
chan2 =
channel.createspecifier(1, k, 2)
print(chan1 .. "," .. chan2)
scan.addimagestep(chan1 .. "," ..
chan2)
end
endscript
Output
1A01,1A02
1C01,1C02
1E01,1E02
1G01,1G02
Using Test Script Builder (TSB)
Installing the TSB software
To install the TSB software:
1. Close all programs.
2. Place the Test Script Builder Software Suite CD (Keithley Instruments part number KTS-850B01
or greater) into your CD-ROM drive.
3. Follow the on-screen instructions.
If your web browser does not start automatically and display a screen with software installation links,
open the installation file (setup.exe) found on the CD to initiate installation.
Project Navigator
The Project Navigator is located on the left side of the workspace. The navigator consists of project
folders and the script files (.tsp) created for each project. Each project folder can have one or more
script files.