Bus & Data Dictionaries

Generate Bus Object for Bus Creators

Button: Generate bus object

This function creates bus objects (Simulink.Bus) for selected Bus Creator blocks. Output lines of the selected Bus Creator blocks must have line names, which will be used as the bus object names.

After clicking the button, a dialog will appear:

SimDolphin Screenshot

Bus Generation Methods

Code Generation Options

Here, you can set various bus object properties.

Select Data Source

You can choose where to save the newly generated bus objects. If the model is linked to a data dictionary, you can select the main or any referenced data dictionary. If the model has access to the base workspace, you can also select the base workspace.

Examples

Generate bus objects by compiling the model:

SimDolphin Screenshot

Generate bus objects by checking resolved signals:

SimDolphin Screenshot
Button: Link bus signals

This function connects a Bus Selector’s named bus signals to the matching input ports of one or more selected downstream Subsystem or Model Reference blocks.

How to use: Select one Bus Selector and one or more Subsystem or Model Reference blocks, then click the button. The tool traces the Bus Selector upstream until it finds a Bus Creator or a resolved Simulink.Bus object, retrieves the bus’s element names, and routes each named element line to the same-named input port on every selected downstream block.

Requirements:

Example

SimDolphin Screenshot

Data Dictionary Functions

Button: Open data dictionary

This button opens a menu for data dictionary functions. It is available for MATLAB R2016a and later versions.

Currently, it provides two functions:

These options are only available when there are unsaved changes in any of the open data dictionaries