Why does Simulink Real-Time hang when I stop running the simulation when File Log blocks are present in my model?

9 visualizzazioni (ultimi 30 giorni)
I have a Simulink Real-Time model and I am logging about 15 signals at 10kHz using File Log blocks. The model runs in External mode without error, but when I stop the model, Simulink hangs for about 10 minutes. How can I stop this from happening?

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 28 Lug 2022
Modificato: MathWorks Support Team il 28 Lug 2022
MATLAB/Simulink can be stuck in busy for a while after running on the target with File Log blocks, depending on how much data is logged to the File Log blocks. For large amounts of data, it simply takes time because downloading the files back to the host can take a while. 
One way to work around this is to turn off the "AutoImportFileLog" option. See the following MATLAB Answers post for details on how to disable this feature:

Più risposte (0)

Categorie

Scopri di più su Troubleshooting in Simulink Real-Time in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by