Section 5: Working with the Series 2600A
Models 707B and 708B 199BSwitching Matrix User's Manual
5-8
707B-900-01 Rev. B / June 2013
Example program code
The example code to configure the Model 707B or 708B and System SourceMeter Instrument shown
below is identical to the code used in Example 1. However, in this example, all commands are sent to
the Model 707B or 708B. This example can be run using TSB Embedded. Commands for the Model
2635 System SourceMeter have the TSP-Link node number appended to the beginning of the
command (
node[2]
).
In the following table, the Model 707B or 708B sends the 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
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.
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.
node[2].smua.source.func =
node[2].smua.OUTPUT_DCAMPS
node[2].smua.source.rangei = 0.01
Set source function to current source.
Set source current range to 10 mA.
node[2].smua.measure.rangev = 6
node[2].smua.measure.nplc = 1
node[2].smua.nvbuffer1.appendmode = 1
Set voltage measurement range to 6 V.
Set integration rate.
Enable buffer append mode.
node[2].smua.trigger.source.limitv = 10
node[2].smua.trigger.source.lineari
(0, 0.01, 11)
node[2].smua.trigger.source.action =
node[2].smua.ENABLE
Set the voltage compliance during the sweep.
Configure linear staircase sweep.
Enable the source action during the sweep.
node[2].smua.trigger.measure.v
(node[2].smua.nvbuffer1)
node[2].smua.trigger.measure.action =
node[2].smua.ENABLE
Configure sweep voltage measurements.
Enable voltage measurements during the sweep.
node[2].smua.trigger.count = 11
node[2].smua.trigger.arm.count = 1
Set trigger count to the number of steps in the sweep.
Set arm count to the number of sweeps to perform each time
the sweep is initiated.