| Contents | Index |
busInfo = Simulink.Bus.createObject('modelName', blks)
busInfo = Simulink.Bus.createObject('modelName', blks, fileName)
busInfo = Simulink.Bus.createObject('modelName', blks, fileName,
'format')
busInfo = Simulink.Bus.createObject(structVar, fileName,
'format')
busInfo = Simulink.Bus.createObject('modelName', blks) creates bus objects (instances of Simulink.Bus class in the MATLAB base workspace) for specified blocks, and returns information about the objects that it created.
busInfo = Simulink.Bus.createObject('modelName', blks, fileName) saves the bus objects in a MATLAB file that contains a cell array of cell arrays. Each subordinate array represents a bus object and contains the following data:
{BusName, HeaderFile, Description, DataScope, Alignment, Elements}The BusElements field is an array containing the following data for each element:
{ElementName, Dimensions, DataType,
SampleTime, Complexity, SamplingMode, DimensionsMode, Min, Max,DocUnits, Description}busInfo = Simulink.Bus.createObject('modelName', blks, fileName, 'format') saves the bus objects in a file that contains either a cell array of bus information, or the bus objects themselves.
busInfo = Simulink.Bus.createObject(structVar, fileName, 'format') creates bus objects in the MATLAB workspace from the numeric MATLAB structure and optionally saves the bus objects in the specified file.
If you specify a model name, the model must compile successfully before you use the Simulink.Bus.createObject command.
Bus Assignment | Bus Creator | Bus Selector | Bus to Vector | Simulink.Bus | Simulink.Bus.cellToObject | Simulink.Bus.createMATLABStruct | Simulink.Bus.objectToCell | Simulink.Bus.save | Simulink.BusElement

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |