Automatic Curves Export after simulation

Hi,
I'm currently running simulations on MotionView 2022.1. I have multiple outputs i want to export in .CSV format.
To do that, i select my curve in the plot window and select : export curves.
I do that one by one for each output i need to export.
I there a solution to "automatically" export selection of outputs in a .CSV format after running a simulation ?
Thanks for your help.
Regards.
Thomas
Answers
-
Hi @Thomas_Bécue,
Yes, this can be accomplished through scripting or, in new versions of MotionView, the use of MotionSolve Jupyter Notebook (recommended).
The scripting method would require the solving and post-processing to be run by either a batch file, Python script, Compose script, etc.
If using batch, you can solve a MDL using the following syntax:
mdl_batch [input_filename] [output_filename] [solver_name] <options>
For the post-processing, you can write TCL commands to open HyperGraph, plot either a PLT or ABF file, and then export the curves.
Using Altair Compose (how I commonly accomplish this task), you could use the CAE Reader Tool to generate the syntax for extracting the desired curves from a PLT or ABF file, and then add a few more lines for writing to CSV and running the model.
The alternative method, using Jupyter Notebook, can automate the creation, solving, post-processing, and reporting of models.
This topic was originally discussed here:
@Christopher_Fadanelli mentions:
You can directly create a MotionSolve Jupyter Notebook session from the Start Menu in Windows or by invoking the respective script in Linux. After invoking the first Jupyter session the tutorials are being placed under:
- Windows: C:\Users\{USER_NAME}\Documents\Altair\MotionSolveNotebooks\demos
- Linux: /home/{USER_NAME}/Documents/MotionSolveNotebooks/demos
The tutorials can also be found in your Altair installation folder:
- {ALTAIR_INSTALL_PATH}\hwsolvers\demos\motionsolve\jupyter
More details can be found in this second Community article:
Hope this helps!
Adam Reid
1 -
Hi,
Thanks for you answer.
Is Jupyter API can work with Motion View 2022.1 ?
Thanks
Thomas0 -
Hi @Thomas_Bécue,
Unfortunately no, the Jupyter API for MotionView was not introduced until the 2024.1 release.
Is it possible for you to update to the 2025.0 release? There are significant improvements that have been implemented since the 2022.1 version.
Hope this helps!
Adam Reid
1