Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-224
2470-901-01 Rev. A /
May
2019
trigger.model.load() — SimpleLoop
This function loads a predefined trigger model configuration that makes a specific number of measurements.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
trigger.model.load("SimpleLoop",
count
)
trigger.model.load("SimpleLoop",
count
,
delay
)
trigger.model.load("SimpleLoop",
count
,
delay
,
bufferName
)
count
The number of measurements the instrument will make
delay
The delay time before each measurement (167 ns to 10 ks); default is
0
for no delay
bufferName
Indicates the reading buffer to use; the default buffers (
defbuffer1
or
defbuffer2
) or the name of a user-defined buffer; if no buffer is specified,
defbuffer1
is used
Details
This command sets up a loop that sets a delay, makes a measurement, and then repeats the loop the
number of times you define in the count parameter.
After selecting a trigger model template, you can view the trigger model blocks in a graphical format
by pressing the front-panel
MENU
key and under Trigger, selecting
Configure
. You can also add or
delete blocks and change trigger model settings from this screen. You can use the
trigger.model.getblocklist()
command to view the trigger model blocks in a list format.
Example
reset()
--set up measure function
smu.measure.func = smu.FUNC_DC_CURRENT
smu.terminals = smu.TERMINALS_REAR
smu.measure.autorange = smu.ON
smu.measure.nplc = 1
--set up source function
smu.source.func = smu.FUNC_DC_VOLTAGE
smu.source.ilimit.level = 0.1
smu.source.level = 20
smu.source.delay = 0.1
smu.source.highc = smu.OFF
--turn on output and initiate readings
smu.source.output = smu.ON
trigger.model.load("SimpleLoop", 200)
trigger.model.initiate()
waitcomplete()
--Parse index and data into three columns
print("Rdg #", "Time (s)", "Current (A)")
for i = 1, defbuffer1.n do
print(i, defbuffer1.relativetimestamps[i], defbuffer1[i])