Main Content

Max file log runs

Selects the number of file log runs to retain for the real-time application

Since R2020b

Model Configuration Pane: Code Generation / Simulink Real-Time Options

Description

Selects the number of file log runs to retain for the real-time application when logs are stored on the target computer instead of uploaded to the development computer after each simulation run. The logs are stored if auto-import is disabled, or the target is not connected to the host at stop time.

Note

You can inadvertently delete existing file logs for an installed real-time application on the target computer if you use the slrealtime.Application function to change the Options for FileLogMaxRuns and then reload the application. To change the number of stored logs without deleting existing logs, load the real-time application and then change the FileLogMaxRuns option by using the start(tg) function.

Dependencies

The SLRTFileLogMaxRuns configuration parameter sets the initial value for the fileLogMaxRuns option when you build the real-time application.

Option: fileLogMaxRuns

Settings

1 | int

Default: 1

int

Select the number of file log runs to retain for the real-time application when logs are stored on the target computer instead of uploaded to the development computer after each simulation run.

Recommended Settings

ApplicationSetting

Debugging

1

Traceability

1

Efficiency

1

Safety precaution

1

Programmatic Use

Parameter: SLRTFileLogMaxRuns
Type: int
Value: int
Default: 1

Version History

Introduced in R2020b