Main Content

disable

Stop file logging of signal data

Description

example

disable(target_object.FileLog) stops the operation of File Log blocks that are logging signal data.

If a Simulink Real-Time model has File Log blocks, when the real-time application is loaded, 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, on real-time application load, disable file logging by using the command disable.

When the development computer is connected to the target computer and the model 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 the most recent run by using the command import(Target.FileLog,'app_name').

Examples

collapse all

When you start a real-time application that has one or more File Log blocks, file logging starts. You can stop and restart file logging. For target computer object tg with a real-time application loaded and started, to stop file logging, type:

disable(tg.FileLog);

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Introduced in R2020b