How can I turn off the automatic import of File Logs in R2020b and beyond?

23 views (last 30 days)
I am using File Log blocks in my Simulink Real-Time (SLRT) model to log data on the Speedgoat target computer file system. After the real-time application stops, if the development computer running MATLAB is connected to the Speedgoat, File Log data is automatically transferred and loaded on the Simulation Data Inspector (SDI). 
What are the different ways to turn off this auto-import behavior for File Logs?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 23 May 2022
Edited: MathWorks Support Team on 23 May 2022

(1) Using the Command-Line Interface

To disable the automatic import of data logs at the end of the simulation, start the application via the MATLAB command window using the 'start' command as follows:\n\n
>> tg = slrealtime;
>> tg.load('myModel');
>> tg.start('AutoImportFileLog',false);

(2) Using SLRT Explorer

Beginning from R2021a, this can be done by starting the simulation from Simulink Real-Time Explorer and unchecking the "AutoImportFileLog" box:

(3) Using Simulink Editor

Starting in R2022a, the AutoImportFileLog check box is also available from the "Run on Target" button on the Real-Time tab in the Simulink Editor:

More Answers (0)

Community Treasure Hunt

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

Start Hunting!