ListSubsystems
list subsystems defined in the linked model
Calling Sequence
Parameters
Returns
Options
Description
Examples
A := MapleSim:-LinkModel();
A:-ListSubsystems(options)
options
-
(optional) equation(s) of the form name = value
list of strings : list of subsystem names
localonly : true or false
Specifies whether to return subsystems that are defined only locally in the model. If localonly = false then the names of all submodels are also returned. Default is true.
A:-ListSubsystems returns the names of the subsystems defined in the linked model.
The A := MapleSim:-LinkModel() statement needs to be run prior to successfully using any of the ModelObject A's export functions.
Linking to a MapleSim model (located in .msim file):
A≔MapleSim:-LinkModel⁡filename=cat⁡kernelopts⁡toolboxdir=MapleSim,/data/examples/RLCcircuit.msim:
Listing subsystems defined in the model:
A:-ListSubsystems⁡
RLC
Listing all subsystems in the model:
A:-ListSubsystems⁡localonly=false
S1,RLC,RLC.C1,RLC.G2,RLC.R1,RLC.I1,RLC.SC1,RLC.PS1
See Also
MapleSim
MapleSim[LinkModel]
MapleSim[LinkModel][GetSubsystemName]
MapleSim[LinkModel][SetSubsystemName]
Download Help Document