Main Content

File Log

Write signal data file log on target computer

Since R2020b

  • File Log block

Simulink Real-Time / Logging


When you enable logging service, the File Log block logs the signal at its input port to the target computer file system.

For more information about the file logging workflow, see Signal Logging and Streaming Basics.


The File Log block uses discrete sample time. When logging signal data for continuous signals, File Log data may differ slightly from signal data produced by marking the signal for logging in the Simulation Data Inspector. For more information, see Types of Sample Time.



expand all

Provides the signal data input for the file log.


expand all

The decimation parameter value selects decimation for the samples captured in the file log.

By using the File Log decimation functions, subsequent loads of the real-time application MLDATX file run on the target with the modified decimation value of the File Log block. These functions are:

For more information, see Tune Decimation for File Log Data Without Model Rebuild.

Programmatic Use


The input processing parameter value selects whether the logged signal data is processed and sent to the Simulation Data Inspector in sample or frame processing mode. For more information about sample-based data and frame-based data in the Simulation Data Inspector, see View Simulation Data in Simulation Data Inspector.

Programmatic Use


Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2020b

expand all