Main Content

Simulink.Simulation.BlockParameter Class

Namespace: Simulink.Simulation

Block parameters in Simulink.SimulationInput objects

Since R2020a

Description

The Simulink.Simulation.BlockParameter object specifies the block parameter, path of the block, and the value of the block parameter used by the Simulink.SimulationInput object during simulation.

In most cases, there is no need to create an object of this class directly. It is recommended that you use the setBlockParameter method on the Simulink.SimulationInput object to add a block parameter to the Simulink.SimulationInput object.

Creation

bp = Simulink.Simulation.BlockParameter('BlockPath', 'Name', 'Value') creates a Simulink.Simulation.BlockParameter object, bp, that specifies the block parameter, Name, with a Value on its path, BlockPath.

Properties

expand all

Path of the block, specified as a character vector.

Name of the block parameter, specified as a character vector.

Value of the block parameter, specified as a character vector.

Version History

Introduced in R2020a