2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-221
trigger.model.load() — LogicTrigger
This function loads a predefined trigger model configuration that sets up a logic trigger through the digital I/O.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
trigger.model.load("LogicTrigger",
digInLine
,
digOutLine
,
count
,
clear
)
trigger.model.load("LogicTrigger",
digInLine
,
digOutLine
,
count
,
clear
,
delay
)
trigger.model.load("LogicTrigger",
digInLine
,
digOutLine
,
count
,
clear
,
delay,
bufferName
)
digInLine
The digital input line (1 to 6); also the event that the trigger model will wait on in
block 1
digOutLine
The digital output line (1 to 6)
count
The number of measurements the instrument will make
clear
To clear previously detected trigger events when entering the wait block:
trigger.CLEAR_ENTER
To immediately act on any previously detected triggers and not clear them (default):
trigger.CLEAR_NEVER
delay
The delay time before each measurement (167 ns to 10 ks); default is
0
for no delay
bufferName
The name of the reading buffer, which may be a default buffer (
defbuffer1
or
defbuffer2
) or a user-defined buffer; defaults to
defbuffer1
Details
This trigger model waits for a digital input event to occur, makes a measurement, and issues a notify
event. The notify event asserts a digital output line.
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
trigger.model.load("LogicTrigger", 1, 2, 10, 0.001, defbuffer1)
Set up the template to use the digital in line and wait for a pulse from digital in line 1 to trigger measurements.
Pulse digital out line 2 when the measurement is complete.
Make 10 measurements, with a delay of 1 ms before each measurement.
Store the measurements in
defbuffer1
.
Also see
(on page 14-202)