Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adams Matlab cosimulation instability

VojtechBrychta

Automotive
Joined
Mar 1, 2024
Messages
9
Location
CZ
Hello,


I'm running a co-simulation between Matlab and Adams/CAR for multiple events, trying to optimize damping characteristics for the vehicle. This requires running multiple loops (100+) of Adams simulation in order for the Matlab algorithm to tune the dampers properly.

I have now encountered an issue where the simulation randomly stops and matlab crashes. There is no error message, no dump file, nothing. I have optimized the matlab code and simulink model the best I could to maintain stability, but I'm still unable to run multiple loops without crashing. When the crash occurs, I can start matlab again and run the last loop successfully, therefor I assume the issue is linked more to the communication between matlab and adams rather than the models themselves.


Do you have any suggestions on how to improve or what to check in order to gain stability?


Thanks a lot!


Sincerely,

Vojtech
 
Hello Greg,

thanks for the feedback.

There is nothing in the .msg file, just the last loop where it successfully finished the calculation.

I think it crashes during initialization rather than simulation itself. Also at random loop. Sometimes just at the beginning, sometimes I'm able to run 100 simulations before it's down.

Where do I find the eprint function?

Thank you very much.

Have a nice day.
Vojtech
 
Perhaps, with some input values from MATLAB, ADAMS cannot calculate the parameters for your vehicle and does not give any output values. Try to read any parameter from ADAMS at the end of the cycle and if the value is determined, then go to the next cycle. If not, then a dialog error message and assign some value yourself. In general, there are not enough details about the interaction format (script, code, Simulink model) to give more correct advice.
 

Part and Inventory Search

Sponsor

Back
Top