Models 707B and 708B 199BSwitching Matrix User's Manual
Section 5: Working with the Series 2600A
707B-900-01 Rev. B / June 2013
5-11
Example program code
In the following table, all commands are sent from the computer to the Model 707B or 708B. This
example can be run using TSB Embedded. The Model 707B or 708B sends all commands in the
shaded rows to the System SourceMeter instrument through the TSP-Link interface. Commands in
unshaded rows are executed by the Model 707B or 708B.
Example program code for the Model 707B or 708B
Code
Notes and comments
loadscript diodeTest
Create a script "diodeTest" to contain
test configuration and execution
instructions.
function configSwitch()
Create a function to configure the Model
707B or 708B.
tsplink.reset()
localnode.reset()
errorqueue.clear()
Reset TSP-Link.
Reset Model 707B or 708B.
Clear errors.
matrixChannels = {}
Define table that details crosspoints to
close to connect each diode to the SMU.
matrixChannels[1] = "1A01, 1B02"
matrixChannels[2] = "1A03, 1B04"
matrixChannels[3] = "1A05, 1B06"
matrixChannels[4] = "1A07, 1B08"
matrixChannels[5] = "1A09, 1B10"
matrixChannels[6] = "1A11, 1B12"
Add entries to the table.
tsplink.trigger[1].mode = tsplink.TRIG_FALLING
tsplink.trigger[2].mode = tsplink.TRIG_FALLING
tsplink.trigger[1].clear()
tsplink.trigger[2].clear()
return matrixChannels
end
Set TSP-Link lines 1 and 2 to send and
receive falling-edge triggers.
Clear any latched triggers on TSP-Link
trigger lines 1 and 2.
Return the table as an output of the
function.
function configSMU()
Create a function to configure the
System SourceMeter instrument.
node[2].reset()
node[2].errorqueue.clear()
node[2].smua.nvbuffer1.clear()
Reset the instrument.
Clear all errors and reset status bits.
Clear existing data from data buffer.