8: TSP command reference Model 2461 Interactive SourceMeter® Instrument
8-298 2461-901-01 A/November 2015
Example 2
print(trigger.model.getblocklist())
Query the configuration of the blocks in the trigger model.
Output:
4) SOURCE_OUTPUT OUTPUT: ON
5) SOURCE_PULSE_OUTPUT PULSE OUTPUT: ON
Also see
trigger.model.setblock() — trigger.BLOCK_SOURCE_OUTPUT (on page 8-296)
trigger.model.setblock() — trigger.BLOCK_WAIT
This function defines a trigger model block that waits for an event before allowing the trigger model to continue.
Type TSP-Link accessible Affected by Where saved Default value
Function Yes
Instrument reset
Configuration script Not applicable
Usage
trigger.model.setblock(blockNumber, trigger.BLOCK_WAIT, event)
trigger.model.setblock(blockNumber, trigger.BLOCK_WAIT, event, clear)
trigger.model.setblock(blockNumber, trigger.BLOCK_WAIT, event, clear, logic, event)
trigger.model.setblock(blockNumber, trigger.BLOCK_WAIT, event, clear, logic, event,
event)
The sequence of the block in the trigger model
The event that must occur before the trigger block allows trigger execution
to continue (see Details)
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):
If each event must occur before the trigger model continues:
trigger.WAIT_AND
If at least one of the events must occur before the trigger model continues:
Details
You can use the wait block to synchronize measurements with other instruments and devices.
You can set the instrument to wait for the following events:
• Front-panel TRIGGER key press
• Notify (only available when using remote commands)
• Command interface trigger
• Digital input/output signals, such as DIGIO and TSP-Link
• LAN
• Blender
• Timer
• Source limit condition