Series 3700A System Switch/Multimeter Reference Manual Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018 11-341
schedule.alarm[N].repetition
This attribute describes the number of times an alarm repeats after the first alarm firing.
Usage
count = schedule.alarm[N].repetition
schedule.alarm[N].repetition = count
The number of repetitions
Details
The alarm will fire a total of count+1 times. If 0 and period is non-zero, the alarm fires forever.
Once an alarm begins, the repetition counts down for each trigger generated. It ends at zero (0). You
must set this repetition back to some value if you intend to reissue the alarm. Otherwise, the alarm
will either not fire (if the period is zero) or fire forever (if period is non-zero).
Example
schedule.alarm[1].repetition = 10
Set the alarm to fire 10 times.
Also see
schedule.alarm[N].enable (on page 11-338)
schedule.alarm[N].seconds
The seconds portion of the alarm time in UTC seconds.
Usage
value = schedule.alarm[N].seconds
schedule.alarm[N].seconds = value
Seconds portion of the alarm time in UTC seconds
Details
1588 has too much resolution to represent in a single floating-point value, so the alarm times are split
into two values (seconds and fractional seconds).
Example
local l_myTime
l_myTime = os.time{year = 2008, month = 3, day = 15, hour = 10}
schedule.alarm[1].seconds = l_myTime
Create an alarm to occur on March 15, 2008 at 10 am in UTC seconds.