
Section 8: TSP command reference
Model 2450 Interactive SourceMeter® Instrument Reference Manual
8-208
2450-901-01 Rev. B/September 2013
trigger.model.setblock() — trigger.BLOCK_LOG_EVENT
This function allows you to log an event in the event log when the trigger model is running.
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_LOG_EVENT,
eventNumber
,
message
)
blockNumber
The sequence of the block in the trigger model
eventNumber
The event number:
•
trigger.LOG_INFO
N
•
trigger.LOG_WARN
N
•
trigger.LOG_ERROR
N
Where
N
is 1 to 4; you can define up to four of each type
message
A string up to 31 characters
Details
This block allows you to log an event in the event log when the trigger model is running. Insert the block into the
trigger model. When the trigger model executes the block, the event is logged.
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(1, trigger.BLOCK_LOG_EVENT, trigger.LOG_INFO1, "info
message")
Set trigger model block 1 to log an event.
Also see
None