| Simulink® | ![]() |
Objects of this class (in conjunction with objects of the Simulink.BusElement class) specify the properties of a signal bus. You can use these objects to enable Simulink software to check the validity of buses connected to the inputs of blocks in your model. You do this by entering the name of a bus object defining a bus in the Bus object field of a block's parameter dialog box. When you update the model's diagram or start a simulation of the model, Simulink software checks whether the buses connected to the blocks have the properties specified by the bus objects. If not, Simulink software halts and displays an error message.
You can use the Model Explorer's Add > Simulink Bus command (see Using the Model Explorer to Create Data Objects), the Simulink Bus Editor (see Using Bus Objects), or MATLAB commands (see Working with Data Objects) to create bus objects in the base MATLAB workspace. If you attempt to create an alias in a model workspace, Simulink software displays an error. You must use the Bus Editor or the MATLAB command line to set the properties of a bus object. Simulink software also provides a set of utility functions for creating and saving bus objects. See the documentation for the following functions for more information:

Table that displays the properties of the bus's elements. You cannot edit this table. You must use either the Simulink Bus Editor (see Using Bus Objects in Using Simulink®) or MATLAB commands to add or delete bus elements or change the properties of existing bus elements. To launch the bus editor, click the Launch Bus Editor button at the bottom of this dialog box or select Bus Editor from the model editor's Tools menu.
Name of a C header file that declares the structure of this bus. This field is intended for use by Real-Time Workshop software (see Code Generation with User-Defined Data Types Real-Time Workshop® Embedded Coder™ User's Guide) . Simulink software ignores this field.
Description of this structure. This field is intended for you to use to document this bus. Simulink software does not use this field.
Name | Access | Description |
|---|---|---|
String that describes this bus. This property is intended for user use. Simulink software does not use it. (Description) | ||
An array of Simulink.BusElement objects that define the names, data types, dimensions, and other properties of the bus's elements. The elements must have unique names. (Bus elements) | ||
String that specifies the name of a C header file that declares the structure of this bus. This property is intended for use by Real-Time Workshop software. Simulink does not use it. (Header file) |
![]() | Simulink.BlockPreCompOutputPortData | Simulink.BusElement | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |