Get the variables of the active MapleSim subsystem - MapleSim Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : MapleSim : MapleSim Application Programming Interface : API Commands : MapleSim/LinkModel/GetVariables

GetVariables - Get the variables of the active MapleSim subsystem

Calling Sequence

A := MapleSim:-LinkModel();

A:-GetVariables(options);

Parameters

options

-

(optional) equation(s) of the form name = value

Returns

• 

list : list of the active subsystem/s variables.

Description

• 

A:-GetVariables returns a list of A's active subsystem's variables. If no subsystem is active, or the option toplevel is specified, the command returns the variables defined for the entire model.

• 

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):

A:=MapleSim:-LinkModel'filename'=catkernelopts'toolboxdir'=MapleSim,/data/examples/RLCcircuit.msim:

Getting the variables of the active subsystem:

A:-GetVariables

C1_p_it,I1_p_it,SC1_n_vt

(1)

See Also

MapleSim, MapleSim[LinkModel]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam