Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-252
2470-901-01 Rev. A /
May
2019
trigger.timer[N].count
This attribute sets the number of events to generate each time the timer generates a trigger event or is enabled as
a timer or alarm.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
Restore configuration
Instrument reset
Power cycle
Trigger timer
N
reset
Configuration script
1
Usage
count
= trigger.timer[
N
].count
trigger.timer[
N
].count =
count
count
Number of times to repeat the trigger (0 to 1,048,575)
N
Trigger timer number (1 to 4)
Details
If the count is set to a number greater than 1, the timer automatically starts the next trigger timer
delay at the expiration of the previous delay.
Set the count to zero (0) to cause the timer to generate trigger events indefinitely.
If you use the trigger timer with a trigger model, make sure the count value is the same or more than
any count values expected in the trigger model.
Example 1
print(trigger.timer[1].count)
Read trigger count for timer number 1.
Example 2
reset()
trigger.timer[4].reset()
trigger.timer[4].delay = 0.5
trigger.timer[4].start.stimulus = trigger.EVENT_NOTIFY8
trigger.timer[4].start.generate = trigger.OFF
trigger.timer[4].count = 20
trigger.timer[4].enable = trigger.ON
trigger.model.load("Empty")
trigger.model.setblock(1, trigger.BLOCK_BUFFER_CLEAR, defbuffer1)
trigger.model.setblock(2, trigger.BLOCK_NOTIFY, trigger.EVENT_NOTIFY8)
trigger.model.setblock(3, trigger.BLOCK_WAIT, trigger.EVENT_TIMER4)
trigger.model.setblock(4, trigger.BLOCK_MEASURE, defbuffer1)
trigger.model.setblock(5, trigger.BLOCK_BRANCH_COUNTER, 20, 3)
trigger.model.initiate()
waitcomplete()
print(defbuffer1.n)