Simulink error: No appropriate method, property or field "checkSimu​lationCons​traints" for class "Simulink.​DeferredMC​OSClass".

3 visualizzazioni (ultimi 30 giorni)
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

Risposte (1)

Sanjay Nair
Sanjay Nair il 3 Giu 2019
Modificato: Sanjay Nair il 3 Giu 2019
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.

Categorie

Scopri di più su Simulink Environment Customization in Help Center e File Exchange

Prodotti


Release

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by