incompatible global variables in a model reference
7 次查看(过去 30 天)
显示 更早的评论
Hi all,
I have a model reference, which is built every time. Also if nothing changed. :-(
My Rebuild configuration is set to "If any changes in known dependencies detected".
( 'UpdateModelReferenceTargets' is set to 'IfOutOfDate' )
I did not change any file.
But the command line displays: ### Model reference SIM target (myModel_msf.mexw64) for model myModel may be out of date because global variables used by this model are incompatible with the variables that were in the base workspace when the target was generated. This model uses global variable(s): 'ConfigSet_myModel,bus1_myModel'.
I did not change the configuration reference/set and I did not change the bus definition.
Why is it incompatible?
Can see furhter information, about the possible differences?
Thanks for your help.
Till
0 个评论
回答(3 个)
A Jenkins
2014-9-8
This Example isn't exactly the same as yours, but it does introduce some of the troubleshooting methods for future reference.
In this case, if you don't need the variables to be global, I would recommend making them local to the model workspace. If you do need them to be global, you can Parameterize your model references to pass in your global parameters instead of trying to compile them in every time.
Brian Wilson
2016-5-26
the configuration set is treated differently than other variables. The best way to manage config sets, especially if you have multiple models using the same config set settings, is to use a "config set reference".
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!