GetSubsystemName
get the active MapleSim subsystem name
Calling Sequence
Returns
Description
Examples
A := MapleSim:-LinkModel();
A:-GetSubsystemName()
string : name of the subsystem
A:-GetSubsystemName returns the name of A's active subsystem. If no subsystem is active, an empty string ("") is returned.
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:
Getting the active subsystem name of the linked MapleSim model (you are at the top-level):
A:-GetSubsystemName⁡
Setting the active subsystem to an RLC circuit subsystem:
A:-SetSubsystemName⁡RLC
RLC
See Also
MapleSim
MapleSim[LinkModel]
MapleSim[LinkModel][ListSubsystems]
MapleSim[LinkModel][SetSubsystemName]
Download Help Document