| Using Simulink | ![]() |
The Simulink Bus Editor allows you to change the properties of bus type objects, i.e., instances of Simulink.Bus class. You can open the Bus Editor in any of the following ways:
buseditor at the MATLAB command line.
After you have performed any of these actions, the Bus Editor appears.
The Bus Editor contains the following groups of controls.
Bus types in base workspace
This group contains a bus object hierarchy pane and a column of editing command buttons.
Bus Object Hierarchy Pane
The bus object hierarchy pane displays the structure of bus objects in the Simulink base (i.e., MATLAB) workspace. The pane displays each object as an expandable tree control. The root node of the tree displays the name of the MATLAB variable that references the bus object and, if the bus contains any elements, a button for expanding and collapsing the node. Expanding a bus node displays nodes representing the bus's top-level elements. Each element node displays the element's name. If the element is itself a bus object, the element appears as a bus node that can itself be expanded and collapsed. Selecting any top-level bus object node displays the bus object's properties in the control groups to the right of the bus object hierarchy pane (see below). Selecting any element displays the element's properties in the Bus Editor's Bus elements table.
Editing Buttons
This group of buttons allows you to create and modify bus objects in the Simulink base (MATLAB) workspace. It includes the following buttons.
Bus elements
This table displays the properties of the top-level elements of the bus object selected in the bus object hierarchy pane or of the selected element.
The table's cells contain controls that enable you to change the displayed property values. See the documentation for Simulink.BusElement class for a description of the usage and valid values for each property.
Bus name
Specifies the name of the workspace variable that references the selected bus object.
Header file
Name of a C header file that defines the user-defined type corresponding to this bus. Simulink ignores this field, which is used by Real-Time Workshop.
Bus description
Description of this bus. Simulink ignores this field.
| Simulation Options Dialog Box | Working with Data | ![]() |
© 1994-2005 The MathWorks, Inc.