Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Adams/Matlab: Setting Up and Modifying Design Variables in Matlab

Saleh abbasi

Mechanical
May 27, 2023
17
Hi everyone, I can create a control plant from my Adams model to run in Simulink. How can I change the design variables initially? I need to modify torsion springs, some lengths, etc., directly from Simulink. I want to optimize my model, so I need to adjust these variables.
 
Replies continue below

Recommended for you

Loosely speaking you need to define the various parameters as design variables in adams, and then pass values to them from your simulink.
 
thanks for your reply. Are you referring to creating Adams models with varying parameter values and link them to Simulink? For the optimization process, the parameters are determined dynamically by the relevant algorithm. As a result, it’s not feasible to pre-create Adams model and then send it to Simulink.
If it's not feasible anyway to do that, how about change this variables in Python instead?

Loosely speaking you need to define the various parameters as design variables in adams, and then pass values to them from your simulink.
 
Last edited:
It isn't sent to simulink it is a co sim with simulink. Is there not a tutorial on this?
 

Part and Inventory Search

Sponsor