|On this page…|
|Signal Logging Configuration Viewing Approach||Usage||Documentation|
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 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 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.
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:
Right-click the signal. From the context menu, select Signal Properties.
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.
Open the model for which you want to view the signal logging configuration.
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:
In the Simulink Editor, right-click a Model block.
In the context-menu, select Log Referenced Signals.
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 Box||Signal 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.
The following table describes default Model Hierarchy pane display of subsystems, masked subsystems, and linked library nodes.
|Subsystem||Displays subsystems all that include logged signals|
|Masked subsystem||Does not display masked subsystems|
|Linked library||Displays 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
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.
To use the Model Hierarchy pane to highlight a block in model, right-click the block or signal and select Highlight block in model.
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.
In the Contents pane, set Column View to the Signals view.