Main Content

blocksAffectedByParameter

Class: SLSlicerAPI.ParameterDependence
Namespace: SLSlicerAPI

Finds the Simulink blocks affected by a parameter

Since R2021b

Syntax


[affectedBlocks,slicerObj] = blocksAffectedByParameter(pd,varUsage)

Description

[affectedBlocks,slicerObj] = blocksAffectedByParameter(pd,varUsage) lists the blocks that are impacted by the parameter.

Input Arguments

expand all

Encapsulates the functions which calculate the dependencies between parameters and model.

Example:

slicerObj = slslicer(model);
pd = slicerObj.parameterDependence;

Data Types: SLSlicerAPI.ParameterDependence Object

varUsage represents the parameters to query that affect the Simulink blocks in the model.

Example:

varUsage = Simulink.VariableUsage('firstParam','base workspace');

Data Types: Simulink.VariableUsage Object

Examples

[affectedBlocks, slicerObj] = blocksAffectedByParameter(pd, variableUsage);

Version History

Introduced in R2021b