Contact US

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

adams/simulink cosimulation error

adams/simulink cosimulation error

adams/simulink cosimulation error

hello everyone

i'm getting this error while running a co-simulation in Simulink / Adams/car

the error says :

Error reported by S-function 'adams_plant' in 'untitled/adams_sub/ADAMS Plant/S-Function':
Adams model file Controls_Plant_1.adm does not exist! Check working directory. AEI_Initialize: Error in initialization.

1- I have set the matlab directory path on the adams directory path where it produces the m.file of my model as one suggested in a matlab forum ... but still this error persists

i'm sending you a picture of the MSC Software block in simulink and when i double click on it to chnage the animation mode , it is set on batch and can't be changed ...

thanks for the help

RE: adams/simulink cosimulation error

The problem is that there is insufficient time for Simulink to connect to the ADAMS server, so obviously what needs to happen to fix this is to somehow increase that time. The way to do this is to create a new Windows environment variable to override the default value (which is 5 seconds) to a bigger value, like 10 or 20 seconds. To be more specific, here's a step by step on a Windows XP machine:

1.) Go "My Computer", right click and open "Properties" 2.) Go to the "Advanced" tab and click "Environment Variables" 3.) Create a new system variable, and call it ADAMS_CONTROLS_WTIME 4.) Set the value to something greater than the default, which is 5 (unit of time is seconds). The greater the value, the more likely it is that you will get a connection and not get an error, but the longer of a time you will have to wait for each and every simulation to run. 10 seconds seems to work best for me. 5.) Click "OK" a bunch of times, then restart MATLAB. You may need to reboot your whole machine.

- From Mathworks Forum.

RE: adams/simulink cosimulation error

I did exactly what you said but nothing happened …

exact same error popped up ...

hope you can come up with another solution ...

thank you very much for replying ...

I changed the value in step 4 to 10 and 20 seconds and exact same thing happened again also I changed the simulation time to the integers that you mentioned and still nothing and the same old exact problem comes up ...

RE: adams/simulink cosimulation error

I must admit my first reaction was that your adams model had failed to build, judging from this message, or that it was in the wrong directory.

"Adams model file Controls_Plant_1.adm does not exist! Check working directory. AEI_Initialize: Error in initialization."

so does this model exist?


Greg Locock

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

RE: adams/simulink cosimulation error

actually yes it does

and I have set MATLAB directory path on the Adams default directory path and the odd thing is that I can see the file ( m.file built by adams ) at the left hand side of my MATLAB window …

but when i run the Simulink model , although a simple one , this error pops up .

RE: adams/simulink cosimulation error

Greetings. Both the error text and the screenshot confirm that an adm-file is not created for your model. In order for it to appear, you must first conduct any of the standard analyzes of the Simulate tab (I don’t know which one you personally need). And after that problems should arise. I'm not sure what resources are allowed to link to, but try looking at this video (https://www.youtube.com/watch?time_continue=1323&a...)

RE: adams/simulink cosimulation error

thanks newbie_user for the reply

standard huh ?

this looks more sensible . i'll try it and keep you apprised . thanks alot for the effort and good responses .

RE: adams/simulink cosimulation error

Dear Bahnam,

I have the same problem.
Planet Export does not generate .adm file

Have you found a solution?

RE: adams/simulink cosimulation error

No SiNa Dehbari

Not yet .I've been busy with something else but newbie user said something worthwhile …

you should take a look at it and you might even get to the solution before me …

i'll put a post here as soon as I get results but I expect the same from you as well …smile


RE: adams/simulink cosimulation error

Dear Behnam,

I read newbie post completely and followed its instruct and get a result.
I ran a simulation with a specific name (for example "abs")
after that in planet export in prefix name, I put "abs_barke" (the name which generates by Adams solver at .adm file).

I would like to know if my work is correct or not.
it seems this is the best way since know!

yours sincerely


RE: adams/simulink cosimulation error

Good Job

Were you able to run the co-simulation ?

Did you get the results of the Co-simulation along with postprocessing ?

what version of MATLAB and Adams are you using ?

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


Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

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