Main Content

File Log

Write signal data file log on target computer

Since R2020b

  • File Log block

Libraries:
Simulink Real-Time / Logging

Description

The File Log block logs the signal at its input port to the Speedgoat® target computer file system when you enable logging service.

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

Examples

Limitations

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.

Ports

Input

expand all

Provides the signal data input for the file log.

Parameters

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

decimation

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

inputProcessing

Extended Capabilities

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

Version History

Introduced in R2020b

expand all