exchange data between script and model
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Khaled Abojlala
le 29 Sep 2016
Commenté : Walter Roberson
le 29 Sep 2016
I am trying to send data from script to model and get the output data of the simulink model on the script to apply some calculations on them. I tried to use sim command, but it takes long time to run and cause out of memory to my script.
Is there any suggestions on other method that I can use?
5 commentaires
Réponse acceptée
Walter Roberson
le 29 Sep 2016
You might be able to use "MAT file logging"; see https://www.mathworks.com/help/rtw/ref/mat-file-logging.html
The To Workspace block only sends data at the time the simulation stops or is paused. In the past I have seen tricks for pausing the simulation and automatically restarting. See https://www.mathworks.com/matlabcentral/answers/80934-systematically-pause-simulink-model-and-continue-from-matlab-command-line#answer_90648
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!