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

9 views (last 30 days)
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?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 Jul 2022
Edited: MathWorks Support Team on 28 Jul 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:

More Answers (0)

Categories

Find more on Troubleshooting in Simulink Real-Time in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!