Simulink.BusElement
Specify properties of elements of buses
Description
A Simulink.BusElement
object is an element of a Simulink.Bus
object that validates the properties of an element in a bus. When you
simulate or update a model, the software checks whether the properties specified by the object
match the properties specified by the corresponding bus elements.
You can specify a bus object, but not a bus element object, as a data type.
To create and modify Simulink.Bus
and
Simulink.BusElement
objects in the base workspace or a data dictionary, you
can use the Type Editor, Model Explorer, or
MATLAB® commands. You cannot store Bus
objects in model
workspaces.
Creation
You can create a Simulink.BusElement
object in multiple ways.
To interactively create a
Simulink.BusElement
object, use the Type Editor or Model Explorer.To programmatically create a default
Simulink.BusElement
object, use theSimulink.BusElement
function (described here).To programmatically create
Simulink.BusElement
objects from blocks in a model, MATLAB data, and external C code, see Programmatically Create Simulink Bus Objects.
Syntax
Description
returns a bus element
object with default property values.be
= Simulink.BusElement