image thumbnail

Bus Object Bus Creator

version 1.1.0.0 (22.8 KB) by Landon Wagner
Tool to automatically populate a busCreator with BusElements names defined in a Bus Type.

514 Downloads

Updated 14 Jan 2021

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

When working with bus object types in a design in order to employ strongly "typed" IO the collection of signals into a busCreator associated with a defined bus object type is tedious. After choosing the "Bus:" type in the busCreator "Output data type" the native busCreator does no further favors for you - the user must know or look up how many signals are in the bus type they wish to employ and set "Number of inputs" accordingly. Worse yet, the user must name the individual signals going into the busCreator with the signal names defined in the bus object type.
This tool's job is to do that favor for you. (Note that the tool itself is just a masked busCreator running some callback scripts so the inclusion of this tool does not overtly stick out in a design.) Details can be found in BOBCreadme.txt but essentially the tool's mask provides the user with candidate bus object types (From the workspace.) to choose from and upon selection and application of a bus object type the tool provides a busCreator with the necessary number of inputs and with those inputs populated with NAMED stubbed signal lines. These names match the BusElement names in the chosen bus object type. From these named stubbed lines the underlying busCreator inherits the names for "Signals in the bus." Again, this saves the user with having to know these signal names and fill them out themselves.

A special thank you to Elie couttet for providing a solution to out of date access of base workspace variables.

Cite As

Landon Wagner (2021). Bus Object Bus Creator (https://www.mathworks.com/matlabcentral/fileexchange/50601-bus-object-bus-creator), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

busObjectBusCreator