Simulink.ConnectionBus
Description
A Simulink.ConnectionBus object is a data type that, when used
with Simulink.ConnectionElement objects, lets you design rigid interface specifications
for Simscape™ conserving connections. When you apply such rigid specification to a
Simscape Bus or Connection Port block, the block ports become
typed by the interface and do not accept connections to a different domain
type.
A ConnectionBus object specifies the architectural properties of an
interface, such as element names, hierarchy, and domain types. A
ConnectionBus object is similar to a cable connector. The connector defines
all the pins and their configuration and controls what types of wires can be connected to it.
Similarly, a ConnectionBus object defines the configuration and domain types
of the ports of the associated Simscape Bus or Connection Port
blocks.
ConnectionBus objects contain Simulink.ConnectionElement objects. Each ConnectionElement object
specifies the properties of a port in a connection bus, such as its name and domain type. To
create nested connection buses, specify a ConnectionElement on the parent bus
and set its type as the child ConnectionBus object.
To create and modify ConnectionBus objects in the base workspace or a
data dictionary, you can use the Type Editor, the
Model Explorer, or
MATLAB® commands. You cannot store ConnectionBus objects in model
workspaces.
To simulate a model containing blocks that use a ConnectionBus object,
that ConnectionBus object must be in the base workspace or in a data
dictionary. You save and load ConnectionBus objects similar to Simulink.Bus objects. For more information, see Save Simulink Bus Objects.
To apply an existing connection bus specification to a Simscape Bus or Connection Port block, use the Connection type parameter and select the bus name from the drop-down list.
Creation
Description
returns a
name = Simulink.ConnectionBusConnectionBus object with default property values. The name of the
ConnectionBus object is the name of the MATLAB variable to which you assign the ConnectionBus
object.
Properties
Examples
Alternatives
To interactively create a ConnectionBus object, use the Type Editor or the
Model
Explorer.
Version History
Introduced in R2021b