makeBlockDiagram
Class: simscape.multibody.Multibody
Namespace: simscape.multibody
Description
makeBlockDiagram(
creates a Simulink® model named mb
,op
,ModelName
)ModelName
from the simscape.multibody.Multibody
object, mb
. The
op
argument is a simscape.op.OperatingPoint
object that specifies the states of some joint
primitives in the mb
object. The makeBlockDiagram
method
adds a Solver Configuration block to the
created Simulink model by default.
The method converts the component objects of the Multibody
object to
mechanical parts or subsystems in the created Simulink model:
Multibody
objects at the top level hierarchy become the subsystems.RigidBody
objects at the top level hierarchy become the subsystems constructed by rigidly connected parts.Other component objects, such as
simscape.multibody.RigidTransform
,simscape.multibody.WorldFrame
,simscape.multibody.Solid
, and objects of subclasses of thesimscape.multibody.Joint
class become the corresponding Simulink blocks.Connectors become the ports on the subsystems, and connections between component objects become lines in the block diagram of the Simulink model.
Input Arguments
Version History
Introduced in R2022a