Simulink.Bus.createObject
CreateSimulink.Bus
objects from blocks or MATLAB structures
Syntax
Description
createsbusInfo
= Simulink.Bus.createObject(model
,blocks
)Simulink.Bus
objects for the specified blocks and returns information about the createdBus
objects.
If you specify a block that corresponds to a bus hierarchy, this function createsBus
objects for each bus in the hierarchy.
If the model uses a data dictionary, theBus
objects are created in the data dictionary. Otherwise, they are created in the base workspace.
createsbusInfo
= Simulink.Bus.createObject(struct
)Bus
objects from a structure that can contain MATLAB®timeseries
, MATLABtimetable
, andmatlab.io.datastore.SimulationDatastore
objects or a numeric structure.
If you specify a structure with hierarchy, this function createsBus
objects for each structure in the hierarchy.
的Bus
objects are created in the base workspace.
savesbusInfo
= Simulink.Bus.createObject(___,file
)Bus
objects in a function that defines object properties in a cell array of cell arrays, then creates theBus
objects by callingSimulink.Bus.cellToObject
.
Specify any of the input argument combinations in the previous syntaxes followed by thefile
argument.