2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-247
Details
When the trigger model reaches the Counter Reset block, it resets the count of the specified Branch
on Counter block to zero.
Example
trigger.model.load("Empty")
trigger.model.setblock(1, trigger.BLOCK_BUFFER_CLEAR)
trigger.model.setblock(2, trigger.BLOCK_MEASURE)
trigger.model.setblock(3, trigger.BLOCK_BRANCH_COUNTER, 5, 2)
trigger.model.setblock(4, trigger.BLOCK_DELAY_CONSTANT, 1)
trigger.model.setblock(5, trigger.BLOCK_BRANCH_COUNTER, 3, 2)
trigger.model.setblock(6, trigger.BLOCK_RESET_BRANCH_COUNT, 3)
trigger.model.initiate()
waitcomplete()
print(defbuffer1.n)
Reset trigger model settings.
Clear
defbuffer1
at the beginning of the trigger model.
Loop and take 5 readings.
Delay a second.
Loop three more times back to block 2.
Reset block 3 to 0.
Start the trigger model and wait for measurements to complete.
Print the number of readings in the buffer.
Output:
15
Also see
trigger.model.getbranchcount()
(on page 14-215)
trigger.model.setblock() — trigger.BLOCK_BRANCH_COUNTER
(on page 14-227)
trigger.model.setblock() — trigger.BLOCK_SOURCE_OUTPUT
This function defines a trigger block that turns the output source on or off.
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_SOURCE_OUTPUT,
state
)
blockNumber
The sequence of the block in the trigger model
state
Turn the source off:
smu.OFF
Turn the source on:
smu.ON
Details
The source output block determines if the output source is turned on or off when the trigger model
reaches this block.