User`s guide

8 Using Events and Callbacks
8-6
Event Callback Property Description
When a frames acquired event occurs, the
toolbox executes the function specified by the
FramesAcquiredFcn property.
Start StartFcn The toolbox generates a start event when an object is
started. You use the start function to start an object.
When a start event occurs, the toolbox executes the
function specified by the StartFcn property.
Note: The StartFcn callback executes synchronously.
If you specify a StartFcn callback function, the
toolbox waits for the function to finish executing before
performing any other processing. If an error occurs in
the start callback function, the object never starts.
Stop StopFcn The toolbox generates a stop event when the object
stops running. An object stops running when the stop
function is called, the specified number of frames is
acquired, or a run-time error occurs.
When a stop event occurs, the toolbox executes the
function specified by the StopFcn property.
Note: The StopFcn callback executes synchronously.
If you specify a StopFcn callback function, the toolbox
waits for the function to finish executing before
performing any other processing.
Timer TimerFcn The toolbox generates a timer event when a specified
amount of time expires. Time is measured relative
to when the object starts running. You use the
TimerPeriod property to specify the amount of time.
Note: Some timer events might not execute if your
system is significantly slowed or if the TimerPeriod
is set too small.