get the signal ports of the active MapleSim subsystem - MapleSim Help

GetPorts - get the signal ports of the active MapleSim subsystem

Parameters

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

Returns

 • list,list : lists of the active subsystem's ports: [InputPorts], [OutputPorts]

Description

 • A:-GetPorts returns lists of A's active subsystem's input and output ports and optionally, acausal ports. If no subsystem is active, or the option toplevel is specified, the command returns an empty list of the inputs and a list of A's probe names for the outputs.
 • The A := MapleSim:-LinkModel() statement needs to be run prior to successfully using any of the ModelObject A's export functions.

Examples

 > $A:=\mathrm{MapleSim}:-\mathrm{LinkModel}\left('\mathrm{filename}'=\mathrm{cat}\left(\mathrm{kernelopts}\left('\mathrm{toolboxdir}'=\mathrm{MapleSim}\right),"/data/examples/RLCcircuit.msim"\right)\right):$

Getting the signal ports of the active subsystem (you are at the top-level):

 > $A:-\mathrm{GetPorts}\left(\right)$
 $\left[{}\right]{,}\left[{\mathrm{Main.Probe1.Vout}}{}\left({t}\right)\right]$ (1)

Setting the active subsystem an RLC circuit subsystem:

 > $A:-\mathrm{SetSubsystemName}\left("RLC"\right)$

Getting the signal ports of the RLC subsystem:

 > $A:-\mathrm{GetPorts}\left(\right)$
 $\left[{\mathrm{Main.RLC.InputSignal}}{}\left({t}\right)\right]{,}\left[{\mathrm{Main.RLC.OutputSignal}}{}\left({t}\right)\right]$ (2)