MATLAB: How to annotate the Signal Builder Block in Simulink 7.3 (R2009a)

annotateblockbuildersigbuilder_blocksignalsignalbuildersimulink

I would like the annotate the Signal Builder block in a way similar to what can be done with the Constant block.
Basically, I would like the annotation to display the currently active signal group. But there is no option for me to do that in the annotations list tab under the block properties menu.

Best Answer

This enhancement has been incorporated in Release 2011a (R2011a). For previous product releases, read below for any possible workarounds:
This is a limitation in Simulink 7.3 (R2009a) and earlier versions. To work around this issue, use the SIGNALBUILDER command. For example:
[t, d, sig_lbls, group_lbls]=signalbuilder(gcb);
indx=signalbuilder(gcb,'activegroup');
group_lbls{indx}
Behavior similar to the annotation functionality could be achieved by putting the code above into the "StartFcn" block callback and set the name of the block to the group name. But this is only a partial work around because the name would be updated only when the model is run.