Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Model Reference Target Update Error

Asked by Chandrashekar on 8 Oct 2012

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

Kaustubha Govind on 8 Oct 2012

Do you see a more detailed error? You should check the command window if there is nothing useful in the popup error window.

Chandrashekar on 9 Oct 2012

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.

Kaustubha Govind on 9 Oct 2012

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.

Chandrashekar

Products

0 Answers

Contact us