Signal logging


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

Category: Data Import/Export


Default: On, logsout


Enables signal logging to the MATLAB® workspace and the Simulation Data Inspector during simulation.

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


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


  • 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.

  • When signal logging is disabled, signals marked for logging still send data to the Simulation Data Inspector.

  • 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.


This parameter enables the Configure Signals to Log button.

Command-Line Information

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