Contenuto principale

clearLogs

Remove system log file and backup log file on target computer

Since R2026a

Description

clearLogs(target_object) removes the system log file and system log backup file (if one exists) from the Speedgoat® target computer target_object. These files on the target computer include:

  • System log file slrealtime.log. Simulink® Real-Time™ creates this file or appends entries to the file if it exists when you connect to the target computer and execute a system operation such as loading a real-time application.

  • Backup system log file . Simulink Real-Time saves this file (at /var/log/slrt/old/) from the existing log file when the target computer reboots either by executing the reboot command or if an issue causes a target computer reboot.

example

Examples

collapse all

After connecting to a target computer, you can clear the system log on the target computer. Clearing the log file can be useful when you would like to start with an empty log to collect data about a specific set of target computer operations.

tg = slrealtime;
clearLogs(tg);

Input Arguments

collapse all

Object that represents target computer, specified as a Target object. The object provides access to methods that manipulate the target computer properties.

Example: tg

Version History

Introduced in R2026a