모델의 모양을 단순화하려면 다음 기법을 사용하여 개별 신호를 복합 신호로 결합하십시오.
복합 신호에 대한 자세한 비교를 보려면 Types of Composite Signals 항목을 참조하십시오.
가상 버스는 신호를 복합 신호로 결합하는 데 대한 대부분의 모델링 요구 사항을 충족하고 다양한 유형의 신호를 결합할 수 있는 유연성을 제공합니다.
|Demux||Extract and output elements of virtual vector signal|
|Mux||Combine input signals of same data type and complexity into virtual vector|
|Selector||Select input elements from vector, matrix, or multidimensional signal|
|Vector Concatenate, Matrix Concatenate||Concatenate input signals of same data type to create contiguous output signal|
|Specify properties of buses|
|Specify properties of elements of buses|
|Convert cell array containing bus information to Simulink.Bus objects|
|Create MATLAB structures that use the same hierarchy and attributes as buses|
|Create Simulink.Bus objects from blocks or MATLAB structures|
|Use Simulink.Bus objects to create cell array containing bus information|
|Save Simulink.Bus objects in function|
Reduce visual complexity in a model by combining signals into a composite signal.
Combine signals into virtual buses, which only affect visual appearance.
Display information about buses, such as signal hierarchy and whether the bus is virtual or nonvirtual.
Identify the blocks that support virtual buses, nonvirtual buses, and arrays of buses.
Use In Bus Element and Out Bus Element blocks for bus inputs and outputs.
Change the order and hierarchy of nested buses and their elements.
Use a Bus Assignment block to assign values to elements of a bus.
Specify bus element values as initial conditions for buses.
Recognize modeling patterns that cause hidden Bus To Vector and Signal Conversion blocks.
Share blocks that create or interact with buses using subsystem references or custom libraries.
Display interfaces to trace signals through the nested levels, annotate signal characteristics, and view units associated with signals.
Simulink.Bus object uses and
Use functions and classes to define
Bus objects and bus
elements, create bus objects from blocks, or create
from MATLAB® data.
Customize the Bus Editor import and export commands by writing MATLAB functions that provide the desired capabilities. Register these functions using the Simulink® Customization Manager.
Create buses that appear in generated code and support modeling constructs such as arrays of buses.
Make the sample time of signals the same so that you can group them in a nonvirtual bus.
Use a structure in code generation to represent a nonvirtual bus. Control data types of initial condition structure fields.
Find nonvirtual buses in generated code for a simple model.
Streamline a model by combining nonvirtual buses that have the same data type into an array.
Set up your model to use an array of buses to select signals, assign values to a signal, perform iterative processing, log and load signals, and initialize signals.
Convert an existing model that does not use arrays of buses to use arrays of buses.