
Section 8: TSP command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
8-292
2461-901-01 A/November 2015
Details
This block allows you to log an event in the event log when trigger model execution reaches this
block. You can also force the trigger model to abort with this block. When the trigger model executes
the block, the defined event is logged. If the abort option is selected, the trigger model is also aborted
immediately.
You can define the type of event (information, warning, abort model, or error). All events generated by
this block are logged in the event log. Warning and error events are also displayed in a popup on the
front-panel display.
Note that using this block too often in a trigger model could overflow the event log. It may also take
away from the time needed to process more critical trigger model blocks.
Example
trigger.model.setblock(9, trigger.BLOCK_LOG_EVENT, trigger.LOG_INFO2, "Trigger
model complete.")
Set trigger model block 9 to log an event when the trigger model completes. In the event log, the message is:
TM #1 block #9 logged: Trigger model complete.
Also see
None
trigger.model.setblock() — trigger.BLOCK_MEASURE
This function defines a trigger block that makes a measurement.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Restore configuration
Instrument reset
Power cycle
Configuration script
Not applicable
Usage
trigger.model.setblock(
blockNumber
, trigger.BLOCK_MEASURE)
trigger.model.setblock(
blockNumber
, trigger.BLOCK_MEASURE,
bufferName
)
trigger.model.setblock(
blockNumber
, trigger.BLOCK_MEASURE,
bufferName
,
count
)
blockNumber
The sequence of the block in the trigger model
bufferName
The name of the buffer, which must be an existing buffer; if no buffer is defined,
defbuffer1
is used
count
The number of measure readings to make before moving to the next block in the
trigger model; set to a specific value or infinite (
trigger.COUNT_INFINITE
) or
stop infinite (
trigger.COUNT_STOP
)
Details
When trigger model execution reaches the block:
1. The instrument begins making a measurement.
2. The trigger model execution waits for the measurement to complete.
3. The instrument places the measurement into the specified reading buffer, which cannot be of the
writable buffer style.