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, Simulink® checks whether the properties specified by the BusElement
object match the properties specified by the corresponding bus elements.
BusElement
objects exist only within the Bus
object. You
can specify a Bus
object, but not a BusElement
object, as a
data type.
To create and modify Bus
and 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 BusElement
object in multiple ways.
To programmatically create a
BusElement
object, use theSimulink.BusElement
function (described here).To interactively create a
BusElement
object, use the Type Editor or Model Explorer.To create
BusElement
objects from blocks in a model, MATLAB data, and external C code, see Programmatically Create Simulink Bus Objects.
Syntax
Description
returns a
be
= Simulink.BusElementBusElement
object with default property values.