View the Signal Logging Configuration

Approaches for Viewing the Signal Logging Configuration

Signal Logging Configuration Viewing ApproachUsageDocumentation

In the Simulink® Editor, view signal logging indicators.

Consider using this approach for models that have few signals marked for signal logging and have a shallow model hierarchy.

This approach avoids leaving the Simulink Editor.

You need to open the Signal Properties dialog box for each signal.

Use Simulink Editor to View Signal Logging Configuration

Use the Signal Logging Selector.

Consider using this approach for models with deep hierarchies.

View a model that has signal logging override settings for some signals.

View the configuration as part of specifying a subset of signals to log from all signals marked for signal logging.

View signal logging configuration without displaying the signal logging indicators in the model.

View signal logging configuration information such as decimation and output options in one window.

Use Signal Logging Selector to View Signal Logging Configuration

Use the Model Explorer.

View signal logging configuration in the context of other model component properties.

You may need to adjust the column view to display signal logging properties.

Use Model Explorer to View Signal Logging Configuration

Use Simulink Editor to View Signal Logging Configuration

By default, Simulink Editor displays an indicator on each signal that is marked for signal logging. To view the signal logging setting for a signal:

  1. Right-click the signal. From the context menu, select Signal Properties.

  2. Select the Logging and accessibility tab.

For example, in the following model the output of the Sine Wave block is logged:

If you use the command-line interface to override logging for a signal, the Simulink Editor continues to display the signal logging indicator for that signal. When you simulate the model, Simulink displays a red signal logging indicator for all signals marked to be logged, reflecting any overrides. For details about configuring a signal for logging, see Configure a Signal for Logging.

A logged signal can also be a test point. See Test Points for information about test points.

To turn the display of logging indicators off, clear Display > Signals & Ports > Testpoint & Logging Indicators.

Use Signal Logging Selector to View Signal Logging Configuration

  1. Open the model for which you want to view the signal logging configuration.

  2. Open the Signal Logging Selector, using one of the following approaches:

    • In the Configuration Parameters > Data Import/Export pane, in the Signals area, select the Configure Signals to Log button.

      If necessary, select Signal logging to enable the Configure Signals to Log button.

    • For a model that includes a Model block, you can also use the following approach:

      1. In the Simulink Editor, right-click a Model block.

      2. In the context-menu, select Log Referenced Signals.

  3. In the Model Hierarchy pane, select the model node for which you want to view the signal logging configuration. For example:

To expand a node in the Model Hierarchy pane, right-click the arrow to the left of the node.

If no signals for a node are marked for signal logging, the Contents pane is empty.

If you open the Signal Logging Selector for a model that uses model referencing, then in the Model Hierarchy pane, the check box to the left of a model node indicates the override configuration of the node.

Check BoxSignal Logging Configuration

For the top-level model node, logs all logged signals in the top model.

For a Model block node, logs all logged signals in the model reference hierarchy for that block.

For the top-level model node, disables logging for all logged signals in the top model.

For a Model block node, disables logging for all signals in the model reference hierarchy for that block.

For the top-level model node, logs all logged signals that have the DataLogging setting enabled.

For a Model block node, logs all logged signals in the model reference hierarchy for that block that have the DataLogging setting enabled.

Viewing the Signal Logging Configuration for Subsystems, Masked Subsystems, and Linked Libraries

The following table describes default Model Hierarchy pane display of subsystems, masked subsystems, and linked library nodes.

NodeDisplay Default
SubsystemDisplays subsystems all that include logged signals
Masked subsystemDoes not display masked subsystems
Linked libraryDisplays all subsystems that include logged signals

You can control how the Model Hierarchy pane displays subsystems, masked subsystems, and linked libraries. Use icons at the top of the Model Hierarchy pane or use the View menu, using the same approach as you use in the Model Explorer. For details, see Displaying Linked Library Subsystems and Displaying Masked Subsystems.

  • To display all subsystems, including subsystems that do not include signals marked for logging, select the icon or View > Show All Subsystems. This subsystem setting also applies to masked subsystems, if you specify to display masked subsystems.

  • To display masked subsystems with logged signals, use the icon or View > Show Masked Subsystems

  • To display linked libraries, use the icon or View > Show Library Links

Filtering Signal Logging Selector Contents

To find a specific signal or property value for a signal, use the Filter Contents edit box. Use the same approach as you use in the Model Explorer; for details, see Filtering Contents.

Highlighting a Block in a Model

To use the Model Hierarchy pane to highlight a block in model, right-click the block or signal and select Highlight block in model.

Use Model Explorer to View Signal Logging Configuration

  1. Open the model for which you want to view the signal logging configuration. Select the top-level model in a model reference hierarchy to access the logging configuration information for referenced models.

  2. In the Contents pane, set Column View to the Signals view.

For further information, see Model Explorer: Model Hierarchy Pane and Model Explorer: Contents Pane.

Was this topic helpful?