How can I turn off the automatic import of File Logs in R2020b and beyond?
23 views (last 30 days)
MathWorks Support Team on 13 Feb 2022
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?
MathWorks Support Team on 23 May 2022
Edited: MathWorks Support Team on 23 May 2022
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;
Beginning from R2021a, this can be done by starting the simulation from Simulink Real-Time Explorer and unchecking the "AutoImportFileLog" box:
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: