GetSubsystemName - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


GetSubsystemName

get the active MapleSim subsystem name

 

Calling Sequence

Returns

Description

Examples

Calling Sequence

A := MapleSim:-LinkModel();

A:-GetSubsystemName()

Returns

• 

string : name of the subsystem

Description

• 

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.

Examples

Linking to a MapleSim model (located in .msim file):

AMapleSim:-LinkModelfilename=catkerneloptstoolboxdir=MapleSim,/data/examples/RLCcircuit.msim:

Getting the active subsystem name of the linked MapleSim model (you are at the top-level):

A:-GetSubsystemName

(1)

Setting the active subsystem to an RLC circuit subsystem:

A:-SetSubsystemNameRLC

A:-GetSubsystemName

RLC

(2)

See Also

MapleSim

MapleSim[LinkModel]

MapleSim[LinkModel][ListSubsystems]

MapleSim[LinkModel][SetSubsystemName]