Why do I receive a warning when I use the MODEL command in Simulink 6.2 (R14SP2)?

Illustration
ratna_eda - 2021-08-26T12:11:19+00:00
Question: Why do I receive a warning when I use the MODEL command in Simulink 6.2 (R14SP2)?

When I execute the following command at the MATLAB prompt:   f14 feval('f14',[],[],[],'lincompile'); [sizes,x0,xstr] = f14; I receive the following warning message: Warning: Model 'f14' is currently compiled for 'linmod' simulation type. The current compilation needs to be terminated before the model can be compiled for the speficed simulation type 'mdlapi'. However, the warning is not produced while running the model using Simulink 6.1 (R14SP1).  

Expert Answer

Profile picture of John Williams John Williams answered . 2025-11-20

This bug has been fixed in Release 2006b (R2006b). For previous product releases, read below for any possible workarounds:
 
We have verified that there is a change in the behavior in Simulink 6.2 (R14SP2) in the way that the above warning is produced when using MODEL command.
 
To workaround the issue, you can safely ignore the warning or edit the line containing the MODEL command to include the command's last ('flag') argument as shown below:
 
f14 

feval('f14',[],[],[],'lincompile'); 

[sizes,x0,xstr] = f14([],[],[],'compile');

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!