Model/GenerateABCD

Usage

generate_abcd (pinput=None, poutput=None, format="matlab")

Examples

# Create a model & perform a simulation
m = CreateStewartPlatform (output="Stewart-Platform")
m.simulate (type="DYNAMICS", end=2, dtout=0.01, returnResults=True)

# Now reset the simulation, load a different model and perform a simulation
m.reset()
m2 = createClock (output="Clock Mechanism")
m2.simulate (type="STATICS", end=2, dtout=0.01, returnResults=True)

Attributes

pinput
Reference Pinput
Specifies a reference to a Plant Input object in the model used in the generation of the ABCD matrices.
poutput
Reference POutput
Specifies a reference to a Plant Output object in the model used in the generation of the ABCD matrices.
format
String
Specifies if you want to generate the matrices using the "matlab" format or the "simulink_mdl" format.

Examples

# Create a model
m = CreateStewartPlatform (output=
"Stewart-Platform"
)
# Reload the simulation state at t=1.77
m.generate_abcd (pinput=pin, poutput=pou, fomat="matlab")