Class: timer
Schedule timer to fire at specified time
startat(t,firingTime)
schedules timer, t
,
to fire at specified time, firingTime
. A timer
fires by executing the callback function, timerFcn
. firingTime
must
be within 25 days of the current time.
If t
is an array of timer objects
and firingTime
is a scalar, startat
sets
all the timers to fire at the specified time.
If t
is an array of timer objects
and firingTime
is an array of the same size as t
, startat
sets
each timer to fire at the corresponding time.
startat(t,
starts
the timer and schedules execution of Y,M,D
)TimerFcn
at
the year (Y
), month (M
), and
day (D
) specified.
startat(t,
also
specifies the hour (Y,M,D,H,MI,S
)H
), minute (MI
),
and second (S
) specified.
|
Object of class |
|
Time at which the timer object is to fire, specified as a serial
date number, character representation of date format, or a date vector.
|
|
Time at which the timer object is to fire, specified as numbers
indicating the year ( |
|
Time at which the timer object is to fire, specified as numbers
indicating the year ( |
The startat
method specifies when
the timer object executes the TimerFcn
callback,
not when the timer starts running. The timer starts running with the
call to the startat
method.
Based on the specified time, startat
computes
and sets the required StartDelay
property of the
timer object, t
. Additionally, it sets the Running
property
of the timer object to 'on'
, and executes the StartFcn
callback.
startat
modifies the timer
object’s startDelay
property.
As such, startat
overrides specified values of
the timer’s startDelay
property.