I have annotation objects in my Simulink model with ClickFcn callback code such as the following:
annotationObject = getCallbackAnnotation;annotationObject.Text = [gcs ' : ' annotationObject.Text];
The code executes as expected when I click on the annotation. However, I would also like the same code to be automatically executed every time I update the block diagram on a model-wide basis for all annotation blocks. In other words, I would like to imitate the InitFcn callback that is available for library blocks.
Best Answer