Simulink.SimulationData.ModelLoggingInfo
Signal logging override settings for model
Description
Use a Simulink.SimulationData.ModelLoggingInfo
object to override
signal logging settings for a model without changing the model in the Simulink® Editor.
Simulink.SimulationData.ModelLoggingInfo
objects are a collection of
Simulink.SimulationData.SignalLoggingInfo
objects that specify all signal
logging override settings for a model.
Use object functions and properties of this object to:
Turn off logging for a signal or a Model block.
Change logging settings for any signals that are marked for logging within a model.
You can control whether a top model and referenced models override signal logging settings
or use the signal logging settings specified by the model. Use the
LoggingMode
and LogAsSpecifiedByModels
properties
to control which logging settings to apply.
Logging Mode for Models | Property Settings |
---|---|
For top model and all referenced models, use logging settings specified in the model. | Set |
For top model and all referenced models, use override signal logging settings. | Set |
For top model and referenced models, use a mix of override signal logging settings and the signal logging settings specified in the model. | Set Include models you want to ignore
override signal logging settings in the |
If you use the Simulink.SimulationData.ModelLoggingInfo
constructor,
specify a Simulink.SimulationData.SignalLoggingInfo
object for each logged
signal for which you want to override logging settings.
To check that you have specified valid signal logging override settings for a model, use
the verifySignalAndModelPaths
function with the
Simulink.SimulationData.ModelLoggingInfo
object for the model.
Creation
Description
Input Arguments
Properties
Object Functions
Simulink.SimulationData.ModelLoggingInfo.createFromModel | Create Simulink.SimulationData.ModelLoggingInfo object for top
model with override settings for each logged signal in model |
findSignal | Find index of signals in Signals property vector |
getLogAsSpecifiedInModel | Determine whether model logs as specified in model or uses override settings |
setLogAsSpecifiedInModel | Set logging mode for top model or top-level Model block |
verifySignalAndModelPaths | Verify paths in Simulink.SimulationData.ModelLoggingInfo
object |
Examples
Version History
Introduced in R2012b