Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-222
2470-901-01 Rev. A /
May
2019
trigger.model.load() — LoopUntilEvent
This function loads a predefined trigger model configuration that makes continuous measurements until the
specified event occurs.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
trigger.model.load("LoopUntilEvent",
triggerEvent
,
position, clear
)
trigger.model.load("LoopUntilEvent",
triggerEvent
,
position
,
clear
,
delay
)
trigger.model.load("LoopUntilEvent",
triggerEvent
,
position
,
clear
,
delay
,
bufferName
)
triggerEvent
The event that ends infinite triggering or readings set to occur before the trigger; see
Details
position
The number of readings to make in relation to the size of the reading buffer; enter as
a percentage (0% to 100%)
clear
To clear previously detected trigger events when entering the wait block (default):
trigger.CLEAR_ENTER
To immediately act on any previously detected triggers and not clear them:
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
The event constant is the event that ends infinite triggering or ends readings set to occur before the
trigger and start post-trigger readings. The trigger model makes readings until it detects the event
constant. After the event, it makes a finite number of readings, based on the setting of the trigger
position.
The position marks the location in the reading buffer where the trigger will occur. The position is set
as a percentage of the active buffer capacity. The buffer captures measurements until a trigger
occurs. When the trigger occurs, the buffer retains the percentage of readings specified by the
position, then captures remaining readings until 100 percent of the buffer is filled. For example, if this
is set to 75 for a reading buffer that holds 10,000 readings, the trigger model makes 2500 readings
after it detects the source event. There are 7500 pre-trigger readings and 2500 post-trigger readings.
The instrument makes two sets of readings. The first set is made until the trigger event occurs. The
second set is made after the trigger event occurs, up to the number of readings calculated by the
position parameter.
You cannot have the event constant set at none when you run this predefined trigger model.