Main Content

blocksAffectedByParameter

Class: SLSlicerAPI.ParameterDependence
Package: SLSlicerAPI

Finds the Simulink blocks affected by a parameter

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);
Introduced in R2021b