getSlRootInportMap
Create custom object to map signals to root-level inports using Simulink mapping mode
Syntax
Description
creates
a root inport map using one of the Simulink® mapping modes. Load
the model before using this function. If you do not load the model
first, the function loads the model to make the mapping and then closes
the model afterwards. To create a comma-separated list of variables
to map from this object, use the inputMap
= getSlRootInportMap('model',modelname
,'MappingMode',mappingmode
,'SignalName',signalname
,'SignalValue',signalvalue
)getInputString
function.
[
returns a vector of logical values specifying whether or not the root
inport map has a signal associated with it. To create a comma-separated
list of variables to map from this object, use the inputMap
, hasASignal
]
= getSlRootInportMap('model',modelname
,'MappingMode',mappingmode
,'SignalName',signalname
,'SignalValue',signalvalue
)getInputString
function.
creates
a root inport map using a custom mapping mode specified in inputMap
= getSlRootInportMap('model',modelname
,'MappingMode','Custom','CustomFunction',customfunction
,'SignalName',signalname
,'SignalValue',signalvalue
)customfunction
.
Load the model before using this function. If you do not load the
model first, the function loads the model to make the mapping and
then closes the model afterwards. To create a comma-separated list
of variables to map from this object, use the getInputString
function.
[
returns
a vector of logical values specifying whether or not the root inport
map has a signal associated with it. To create a comma-separated list
of variables to map from this object, use the inputMap
,hasASignal
]
= getSlRootInportMap('model',modelname
,'MappingMode','Custom','CustomFunction',customfunction
,'SignalName',signalname
,'SignalValue',signalvalue
)getInputString
function.
To map signals to root-level inports using custom mapping modes,
you can use getSlRootInport
with the Root Inport
Mapper dialog box custom mapping capability.
Examples
Input Arguments
Output Arguments
Tips
Load the model before running this function.
If your custom mapping mode is not similar to an existing Simulink mapping mode, consider using the
getRootInportMap
function instead.
Version History
Introduced in R2013b