Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

AMESim in a windows batch

Hello,

Is it possible to start an AMESim calculation in a windows batch file?

For instance all the licenses are busy, and I want to launch my calculations late at night.

Thank you

Maxime

7 REPLIES

Re: AMESim in a windows batch

[ Edited ]

Hello @mAx

 

Yes, it's available, please have a look at the executables located in your Amesim setup directory.
Try them, many are available but you need to specify some args in the command-line.

Don't forget to set the %AME% environment variable and update the %PATH% if needed.

 

Best regards,

Jeremy

All you need is a solver and here we go!

Re: AMESim in a windows batch

Great!

Is there any help or example?

Re: AMESim in a windows batch

[ Edited ]

Hello,

 

indeed the simulation executable is in the ame file.

From a DOS command window you could do:

AMELoad model.ame
model.exe
AMESave model.ame

AMELoad and AMESave are utilities in $AME/win32 which extract/archive the ame file.

Solution
Solution
Accepted by topic author mAx
‎02-13-2017 04:53 AM

Re: AMESim in a windows batch

in a bat file

CALL AMELoad ClutchInternalDamper
CALL ClutchInternalDamper_.exe
CALL AMESave ClutchInternalDamper

Re: AMESim in a windows batch

Is it possible to set a batch run (AMESim) and save the results in a experiment

And this in the script?

Thank you for all your replies

Re: AMESim in a windows batch

It is not possible to set a batch run with DOS command. The best you can do there is execute a batch which has been defined in your model - same as before using AMEBatch instead of model_.exe.

 

To define the equivalent of a batch you should start looking into the Amesim API (Python , C, VBA).

I don't think you can handle experiment with the API, you could still start saving different instances of your model....

In Amehelp, check  / All platform manuals / LMS Amesim API

Also this post

 

Re: AMESim in a windows batch

alright,

I will try some test today

For sure I will come back

Thank you!