Main Content

abort

Abort file log data import from target computer

Description

example

abort(target_object.FileLog) aborts the file log import process.

If a Simulink Real-Time model has File Log blocks, when you load the real-time application, file logging is enabled. This default operation is the same as enabling file logging by using the command enable.

To control file logging by using the Enable File Log block, when you load the real-time application load, disable file logging by using the command disable.

When your development computer is connected to the target computer and the real-time application stops, the file log data is uploaded to the Simulation Data Inspector. For a standalone target computer that does file logging when not connected, after connecting the development and target computers, upload the file logging data for all available runs from an application by using the command import(Target.FileLog,'app_name').

Examples

collapse all

When you stop a real-time application that is file logging, the file log data is uploaded to the Simulation Data Inspector. You can stop the log upload, but the log data is lost. For target computer object tg that is uploading file log data from a real-time application, to stop file log import, type:

abort(tg.FileLog)

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Introduced in R2020b