Main Content

Signal logging


Globally enable or disable signal logging to the workspace for a model.

Category: Data Import/Export


Default: On, logsout


Enables logging data for specified signals to the MATLAB® workspace and the Simulation Data Inspector.

Specify the name of variable used to store logged signal data in the MATLAB workspace. For more information, see Specify a Name for Signal Logging Data.


Disables logging signal data to the MATLAB workspace and the Simulation Data Inspector.


  • You must select the Signal logging check box before entering the signal logging variable.

  • Simulink® saves the signal data in a MATLAB workspace variable with the specified name.

  • The saved data is a Simulink.SimulationData.Dataset object.

  • Data for variable-size signals is saved as a timetable object with a cell array of values for each time step.

  • Simulink does not support signal logging for the following types of signals:

    • Output of a Function-Call Generator block

    • Signal connected to the input of a Merge block

    • Outputs of Trigger and Enable blocks

  • If you select Signal logging, you can use the Configure Signals to Log button to open the Signal Logging Selector. You can use the Signal Logging Selector to:

    • Review all signals in a model hierarchy that are configured for logging

    • Override signal logging settings for specific signals

    • Control signal logging throughout a model reference hierarchy in a streamlined way

    You can use the Signal Logging Selector with Simulink and Stateflow® signals.

    For details about the Signal Logging Selector, see View Logging Configuration Using the Signal Logging Selector and Override Signal Logging Settings.

  • Do not use a variable name that is the same as a Simulink.SimulationOutput object function name or property name.

  • For information about logging Simscape™ data, see About Simulation Data Logging (Simscape).


This parameter enables the Configure Signals to Log button.

Programmatic Use

Parameter: SignalLogging
Value: 'on' | 'off'
Default: 'on'
Parameter: SignalLoggingName
Type: character vector
Value: any valid value
Default: 'logsout'

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo recommendation
Safety precautionNo recommendation

Related Topics