Simulink error: No appropriate method, property or field "checkSimulationConstraints" for class "Simulink.DeferredMCOSClass".
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a model that worked on one machine that has all the toolboxes installed and simulating the model produces no errors, and ran fine. But when model is transferred to a machine with just Simulink and Matlab installed it gives the following error:
No appropriate method, property or field 'checkSimulationConstraints' for class 'Simulink.DeferredMCOSClass'.
This error is frustrating as I tried searching the web for the remedy to this error.
Anyone have an idea how this occurrs or solution to it?
Thanks,
HW
0 个评论
回答(1 个)
Sanjay Nair
2019-6-3
编辑:Sanjay Nair
2019-6-3
Hello Herman,
Thanks for posting.
My suspicion is that the model you are running has a dependency on a file or a toolbox that is not available in the machine where the simulation is not working.
You can find the list of toolbox dependencies in the model by using the dependencies.toolboxDependencyAnalysis function: dependencies.toolboxDependencyAnalysis({'modelname'});
You can find the list of file dependencies in the model by using the dependencies.fileDependencyAnalysis function: dependencies.fileDependencyAnalysis('modelname');
Use these functions for your model on the machine where the model works.
In order to simulate the model correctly in the other machine, you will need to make sure that the other file has access to the file dependencies as well as the toolbox dependencies.
Hope this helps.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!