User`s guide
Event Types
Events and Callback Function Properties (Continued)
Event Callback Proper ty D es cription
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 Sta rtFc n 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 e xecutes synchronously.
If you specify a
StopFcn callback function, the
toolbox waits for the function to finish executing
before performing any other processing.
7-5