Buses

Create Simulink Bus Signal from the cell Array
14 Downloads
Updated 3 Sep 2019

View License

Create Simulink Bus object in workspace from the cell array containing the Bus information.
For example,
cellInfo = { ...
{ ...
'FIT_IN', ...
'', ...
sprintf('Bus object created by TargetLink for DD object //DD0/Pool/Typedefs/ST_FIT_IN.'), ...
'Auto', ...
'-1', {...
{'Vs', 1, 'single', -1, 'real', 'Sample', 'Fixed', [], [], '', ''}; ...
{'TqRaw', 1, 'single', -1, 'real', 'Sample', 'Fixed', [], [], '', ''}; ...
} ...
} ...
{ ...
'FIT_OUT', ...
'', ...
sprintf('Bus object created by TargetLink for DD object //DD0/Pool/Typedefs/ST_FIT_OUT.'), ...
'Auto', ...
'-1', {...
{'StrTqLpf', 1, 'single', -1, 'real', 'Sample', 'Fixed', [], [], '', ''}; ...
{'StrTqHpf', 1, 'single', -1, 'real', 'Sample', 'Fixed', [], [], '', ''}; ...
} ...
} ...
}';

will create FIT_IN, FIT_OUT buses in workspace using command
Simulink.Bus.cellToObject(cellInfo)

Cite As

Mundrathi Venugopal (2024). Buses (https://www.mathworks.com/matlabcentral/fileexchange/72642-buses), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Composite Signals in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0