Main Content

Composite-Schnittstellen

Gruppieren Sie Signale oder Nachrichten, um die Modellkomplexität an Komponentenschnittstellen zu reduzieren

Um die Modellkomplexität zu reduzieren, gruppieren Sie einzelne Signale oder Nachrichten mithilfe von Bussen zu Composite-Leitungen.

Virtuelle Busse erfüllen die meisten Modellierungsanforderungen für Composite-Schnittstellen und bieten die Flexibilität, verschiedene Arten von Signalen zu kombinieren.

Einen Vergleich von Modellierungstechniken finden Sie unter Composite Interface Guidelines.

Blöcke

alle erweitern

In Bus ElementSelect input from external port
Out Bus ElementSpecify output of external port
Bus AssignmentAssign new values to specified bus elements
Bus CreatorGroup input signals or messages into bus
Bus SelectorSelect elements from input bus
DemuxExtract and output elements of virtual vector signal
MuxCombine input signals of same data type and complexity into virtual vector
SelectorSelect input elements from vector, matrix, or multidimensional signal
Vector ConcatenateConcatenate input vectors of same data type for iterative processing
Matrix ConcatenateConcatenate input matrices of same data type for iterative processing
Bus to VectorConvert virtual bus to vector
Signal ConversionConvert signal to new type without altering signal values

Funktionen

alle erweitern

Simulink.Bus.addElementToPortAdd element to input bus element port (Seit R2022b)
getNumLeafBusElementsNumber of leaf elements in Simulink.Bus object
getLeafBusElementsLeaf elements in Simulink.Bus object
Simulink.Bus Specify properties of buses
Simulink.BusElement Specify properties of elements of buses
Simulink.Bus.cellToObjectCreate Simulink.Bus objects from cell array of bus information
Simulink.Bus.createObjectCreate Simulink.Bus objects from blocks or MATLAB structures
Simulink.Bus.objectToCellCreate cell array of bus information from Simulink.Bus objects
Simulink.Bus.saveSave Simulink.Bus object definitions in function
Simulink.Bus.createMATLABStructCreate MATLAB structures that use the same hierarchy and attributes as buses
Simulink.BlockDiagram.addBusToVectorConvert virtual bus signals into vector signals by adding Bus to Vector blocks

Tools

Signal Hierarchy ViewerView signal hierarchy and trace signal to source or destination
Type EditorCreate, modify, and manage types, such as bus objects

Modelleinstellungen

alle erweitern

Nicht spezifiziertes Bus-Objekt am Root-AusgangsblockDiagnostic action to take when root Outport block of referenced model does not specify bus object for bus output
Nicht übereinstimmende ElementnamenDiagnostic action to take when bus element name does not match corresponding bus element object name
Bus-Signal wird als Vektor behandeltDiagnostic action to take when virtual bus is treated as vector
Nicht-Bus-Signale werden als Bus-Signale behandeltOption to implicitly convert nonbus signals treated as buses into buses
Busauswahl reparierenOption to automatically repair broken selections caused by upstream bus hierarchy changes

Themen

Grundlagen zu Composite-Schnittstellen

Leitungen visuell gruppieren

Ändern und Konfigurieren von Bussen

Bus-Objekt-Datatypen definieren

Leitungen funktional gruppieren

Iterative Verarbeitung vereinfachen

Verwandte Informationen