Error with running a Simulink model.
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a run file to run the fowards facing model of this electric motor and this is whats happens...
Every time I run the forwards model matlab run file and then go on my backwards model and run it I get these 4 errors. But if I don’t run the run file and then run the backwards model straight away, it works every time with no errors and the correct outputs.Any ideas?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1542832/image.jpeg)
0 commentaires
Réponses (1)
Sabin
le 20 Nov 2023
Without the files is not easy to tell where the problem is. I suspect when you run the first model some parameters from the workspace are either overwritten or deleted from workspace which will result in the errors when running the second model. First, I would check all callbacks and the names used for data logging. I hope this helps.
3 commentaires
Sabin
le 21 Nov 2023
May be that 'Single simulation output' is enabled in the Configuration Parameters. If that's the case the data is saved as 'out' (or a different name if changed) in the workspace.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1545607/image.png)
Voir également
Catégories
En savoir plus sur Simulink Functions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!