Main Content


Start file logging of signal data



enable(target_object.FileLog) starts operation of stopped File Log blocks.

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 with the Enable File Log block, when the real-time application is loaded, 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 all available runs from an application by using the command import(Target.FileLog,'app_name').


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 start file logging, type:


Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Introduced in R2020b