verifySignalAndModelPaths
Verify paths in Simulink.SimulationData.ModelLoggingInfo
object
Syntax
Description
verifiedObj = verifySignalAndModelPaths(
returns a verified model logging override object, mdlInfo
)verifiedObj
, if the
function detects no invalid paths for the model logging override object
mdlInfo
. If an invalid path is found,
verifySignalAndModelPaths
returns an error.
For a Simulink.SimulationData.ModelLoggingInfo
object, the
verifySignalAndModelPaths
function verifies that:
All character vectors in the
LogAsSpecifiedByModels
property are either the name of the top model or the block path of a Model block in the top model.The block paths for signals in the
Signals
property refer to valid blocks within the hierarchy of the top model.The
OutputPortIndex
property for all signals in theSignals
property are valid for the given block.All signals in the
Signals
property refer to logged signals.
If you use the Simulink.SimulationData.ModelLoggingInfo
constructor and
specify a Simulink.SimulationData.SignalLoggingInfo
object for each signal,
you can use the verifySignalAndModelPaths
function to verify that your
object definitions are valid.
Examples
Input Arguments
Version History
Introduced in R2012b