MATLAB: Do I get blocks with bad links when I open a model in Simulink 4.0/4.1 (R12/R12SP1) which was saved using Simulink 5.0/5.1 (R13/R13SP1)

asbadblockslibrarylinksoldsavesimulinkversion

I create or modify a model in Simulink 5.0 (R13) and then save the model as Simulink 4.0/4.1 (R12/R12SP1). When I open the saved model with Simulink 4.0 (R12) or Simulink 4.1 (R12SP1), I see that some of library blocks show up as bad links.

Best Answer

This issue has been fixed in Simulink 6.0 (R14). If you are using a previous version, read the following:
This is a bug in Simulink 5.0/5.1 (R13/R13SP1) in the way that the Perl script processes the .mdl file.
To workaround this issue in Simulink 5.0/5.1 (R13/R13SP1), follow the steps below:
1. Download the attached "slsaveas.m" and the "slsaveasaddon.m" to the following folder:
$MATLABROOT\toolbox\simulink\simulink
where $MATLABROOT is the value returned by entering the following command at the MATLAB command prompt:
matlabroot
2. Reopen MATLAB and verify that the issue is resolved.