The following examples demonstrate three ways in which simulation data for a MapleSim model that contains visualization components can be used to create a standalone movie of the simulation.
In all cases, the link to the original MapleSim model is needed because it contains the definitions needed to render the visualization elements.
Link to an existing MapleSim file with visualization components.
>
|
|
>
|
|
|
Use Simulate
|
|
Run the simulation and return a simulation record. Use the params option to Simulate to set the length of the upper arm of the double pendulum to 3 meters.
>
|
|
Make a movie. By default, the name of the movie file is aMovie.webm and is stored in the home directory.
|
|
Use with compiled procedure
|
|
Create a compiled procedure that returns a suitable data record.
>
|
|
•
|
Call the compiled procedure to return the simulation record.
|
>
|
|
Make a movie file named MyMovie.webm and store it in the default directory.
>
|
|
|
|
Use an FMU
|
|
Make a movie from the binary data generated by an FMU of the MapleSim model.
>
|
|
>
|
|
>
|
|
|