×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

May I know How to Run Adams view Simulations in Batch Mode from the Command Line?

May I know How to Run Adams view Simulations in Batch Mode from the Command Line?

May I know How to Run Adams view Simulations in Batch Mode from the Command Line?

(OP)
I already have my ".dll' and ".bin" file. and my adams version is 2019_2. However, I am going to write and run a Shell Script to get my Adams view simulation done.
Please let me know what steps I should take?
If someone knows how to write and run a Shell Scrip on Linux environment to run an ADAMS simulation, that would be a great help too.

RE: May I know How to Run Adams view Simulations in Batch Mode from the Command Line?

Or perhaps you meant this

Running Adams /View in batch mode is easy:

mdi -c aview ru-s b test.cmd exit

This will start ADAMS/View, and execute the sequence of commands that you've put in the file named 'test.cmd'. Afterward you can look at the aview.log file to see if there have been any errors:

grep ERROR aview.log

When the batch job runs, the 'Begin execution of Adams /View...' message and the Copyright banner will appear in your UNIX shell. If you wish, you can redirect that visual output to a file, like this:

For a foreground job, like this:

mdi -c aview ru-s b test.cmd ex > my_screen_dump.log

For a background job, like this:

mdi -c aview ru-s b test.cmd ex > & my_screen_dump.log

Or send the screen dump to the bit gods:

mdi -c aview ru-s b test.cmd ex > /dev/null

Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?

RE: May I know How to Run Adams view Simulations in Batch Mode from the Command Line?

(OP)
Thanks for the response. Unfortunately, I cannot have access to the article' link above.

I followed what you mentioned above:

Before doing anything I places my ".dll" contact subroutine and my Adams view model (.cmd) in the directory of "mdi"

I mean "C:\MSC.Software\Adams\2017_1\common"

Then opening the command prompt I went to the directory above and then I typed mdi -c aview ru-s b test.cmd exit

and I see this message and nothing else.

1 file(s) copied.
i did not see anything elese or running the simulation

RE: May I know How to Run Adams view Simulations in Batch Mode from the Command Line?

(OP)
Also, I checked the following command


mdi ru-user contact.dll test.cmd

Then Adams banner appeared

but the result is

command: FILE/MODEL=!, OUTPUT_PREFIX=!--------------------------


---- START: ERROR ----
Attempt to read in model into AMD was unsuccessful

---- END: ERROR ----


Finished -----
Elapsed time = 0.00s, CPU time = 0.00s, 0.00%

RE: May I know How to Run Adams view Simulations in Batch Mode from the Command Line?

(OP)
Oh. Sorry what do you mean by the legitimate user? ! I am a student using Adams with a license that Purdue University provides for graduate research students.

Anyways, I hoped that I could get this done by the comment you made on my question. Any ideas why I am getting that error?

RE: May I know How to Run Adams view Simulations in Batch Mode from the Command Line?

The reason you need an account there is that there are several dozen articles that might be relevant, and I'm not going to cut and paste them for you. Sorry, no I can't help directly as I don't use View, and I'm no longer on Unix.


Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?

RE: May I know How to Run Adams view Simulations in Batch Mode from the Command Line?

(OP)
I see. No problem.

Thanks anyways

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close