Bus Object Bus Creator

Tool to automatically populate a busCreator with BusElements names defined in a Bus Type.
561 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 (2024). 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

Version Published Release Notes
1.1.0.0

Updated in 2020b. Base workspace variables are no longer accessible the same was as they were in 2014b so this was updated. Mask parameters used in 2014b that were R/W are now R only. New R/W parameters were identified and used to fix functionality.

1.0.0.0