How can I turn off the automatic import of file logs from my Speedgoat target?

11 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). In newer releases, I see this message in the MATLAB command window:
Importing Log file 1 of 1 ...
How can I turn off this auto-import behavior for file logs?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 4 Apr 2025
Edited: MathWorks Support Team on 4 Apr 2025
There are 4 different ways to disable the automatic import of data logs at the end of the simulation:

1. Using MATLAB Commands

Start the application via the MATLAB command window using the 'start' command as follows:
>> tg = slrealtime;
>> load(tg,'myModel');
>> start(tg,'AutoImportFileLog',false);
Since R2023a, it is also possible to disable the auto-import when stopping the application. So in case the run was accidentally started with the wrong setting, this can still be rectified using the 'stop' command:
>> stop(tg,'AutoImportFileLog',false);
.

2. Using SLRT Explorer

Beginning from R2021a, a checkbox to select or deselect "AutoImportFileLog" is available when you expand the "Start" button menu as shown in the screenshot below:
You have to manually disable the flag every time you reopen SLRT Explorer.
Since R2023a, the same option is available from the Stop button. This allows you to change the "AutoImportFileLog" setting even while the real-time application is running.

3. Using the Real-Time Tab in your model

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:
You have to manually disable the flag every time you reopen your model. Since R2023a, the same option is available from the "Stop Application" button. This allows you to change the "AutoImportFileLog" setting even while the real-time application is running.

4. Using the StartStopButton in your SLRT App

Starting from R2022b, the StartStopButton has an "AutoImportFileLog" property that you can set to control if file logs are automatically downloaded when using an SLRT app.
For some considerations when using file logs with a MATLAB Compiler deployed standalone app, see the following MATLAB Answer: Can I import and view File Log data from my Speedgoat target when using a MATLAB Compiler deployed standalone app?

More Answers (0)

Community Treasure Hunt

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

Start Hunting!