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."?
28 views (last 30 days)
Show older comments
MathWorks Support Team
on 16 Jun 2021
Answered: MathWorks Support Team
on 16 Jun 2021
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
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!