MATLAB: Do I receive a warning message when I use a Simulink object as the variable name in a mask within a library in Simulink 6.4(R2006a+)

breaklinkparameterreadrestores-functionsimulinktypewrite

I have a masked S-function in a library with one of the variables named 'type'. I create a link to this library in a new model. Each time I change the 'type' parameter values, save the model, close and reopen it, I receive the following warning message at the command prompt:
Warning: Test.mdl, line 519: Reference block parameter 'type' is read-only.
and the new 'type' parameter value is not retained.

Best Answer

This bug has been fixed in Release 2007b (R2007b). For previous product releases, read below for any possible workarounds:
'Type' is a Simulink object type (read only) parameter and its value is 'block'. Since 'Type' is a reserved name in Simulink, it has been set to read-only.
As a workaround, change all instances of the variable 'type' to 'type1' or any other name within the library. In this case, make changes in the Mask Editor- Parameters pane as well as the S-function parameters list.