While simulating the simulink model following error occured. "*Model Reference Target Update Error*".
This error occurs when I simulate the model containning the model reference block. If I replace model reference block with subsystem it simulates perfectly.
Also In command window it displays following error:
NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. The make command returned an error of 2 'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command, operable program or batch file.
Please can anyone help me on this error. I'm using matlab 7.9(R2009b), simulink version 7.4.
3 Comments
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/50211#comment_103777
Do you see a more detailed error? You should check the command window if there is nothing useful in the popup error window.
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/50211#comment_104025
In command window it displays following error:
NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. The make command returned an error of 2 'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command, operable program or batch file.
### Real-Time Workshop build procedure for model: 'emz01_00_emcdsel' aborted due to an error.
I cannot able to simulate the model if it contains the model reference block. If I replace with subsystem it simulates perfectly. Please can you help me on this error.
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/50211#comment_104035
It looks like you need to turn on verbose build to see exactly where the make error is happening. Could you run this command first:
set_param('modelname', 'AccelVerboseBuild', 'on')And then run the model again. You should see a more detailed error.