MATLAB Answers

Why do I receive the error message "The number of input and output ports of the model and the model reference target does not match. This indicates that the model reference target of model 'my_referenced_model' is not up to date."?

2 views (last 30 days)
When trying to run my Simulink model in SIL mode I am receiving the following error message,
Invalid model reference target. Block 'my_main_model/my_referenced_model' is referencing model 'my_referenced_model'.
The number of input and output ports of the model and the model reference target does not match.
This indicates that the model reference target of model 'my_referenced_model' is not up to date.
Why-do-I-receive-the-error-message-The-number-of-input-and-output-ports-of-the-model-and-the-model-reference-target-does-not-match-This-indicates-that-the-model-reference-target-of-model-my-referenced-model-is-not-up-to-date

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 16 Jun 2021
In such cases the cached data for the referenced model have not been updated after the referenced model that is supposed to be executed in SIL mode has been changed. Please manually remove all the cached data that are automatically generated by Simulink and rerun the Simulink model in SIL mode.

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by