annotation_new = Stateflow.Annotation(parent)
Stateflow.Annotation method is a constructor method for
creating an annotation in a parent chart, state, box, or graphical function. This
method returns a handle to the new
Handle to the object for the parent chart, state, box, or function for the new annotation
Handle to the Annotation object for the newly created annotation
sA is a handle to a State object for the existing state
A, the following command creates a new annotation parented
(contained by) state
annotation_new = Stateflow.Annotation(sA)
The new annotation appears in the upper left corner of state
in the chart, but is invisible because it has no text content.
annotation_new is a handle to the Annotation object for the
new annotation, that you use to set its text content with a command like the
annotation_new.Text = 'This is an annotation'