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