Specify properties of elements of buses
A Simulink.BusElement
object is an element of a
Simulink.Bus
object that specifies the properties of a signal in a
bus.
BusElement
objects validate the properties of signals in a bus. A Simulink.Bus
object contains BusElement
objects. A
BusElement
object exists only within a Bus
object. You can
specify a Bus
object, but not a BusElement
object, as a
block parameter value. When you simulate a model or update diagram, Simulink® checks whether the signals in a bus connected to blocks have the properties
specified by the BusElement
objects. If not, Simulink halts and displays an error message.
You can use the Simulink Bus Editor (see Create and Specify Simulink.Bus Objects), or
MATLAB® commands (see Create Bus Objects Programmatically) to create
and modify Bus
objects and BusElement
objects in the base
MATLAB workspace.
returns a busElementObject
= Simulink.BusElementBusElement
object with these property
values:
Name: 'a' Complexity: 'real' Dimensions: 1 DataType: 'double' Min: [] Max: [] DimensionsMode: 'Fixed' SampleTime: -1 Unit: '' Description: ''
To interactively create a BusElement
object, use the Bus Editor.
To create BusElement
objects from blocks in a model, MATLAB data, and external C code, see Create Bus Objects Programmatically.