Write signal data file log on target computer
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.
S — Signal data for file log
scalar | vector | matrix | array | bus | nonvirtual bus
Provides the signal data input for the file log.
Decimation — Applies decimation to file log data
1 (default) | integer
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.
Input Processing — Selects processing mode for file log data
Elements as channels (sample based) (default) |
Columns as channels (frame based)
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.
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Version HistoryIntroduced in R2020b
R2022a: Decimation, Log Retention, and Frame-Based Input
Functions let you get and set decimation values for File Log blocks in a model. Also, functions let you control when File Log recording starts and stops.