Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

ADAMS/Simulink Co-Simulation with imported files

tom.binetti

Aerospace
Jan 30, 2025
1
Hi there!
I am currently working on a ADAMS/Simulink Co-Simulation project. There are some problems that I want to address bc I couldn't find any response on the ADAMS Help:

1. I created two distinct .adm files, one with all the geometry set in ADAMS (file A) and one with the geometry imported via SolidWorks (file B). Both have the same geometry features and the same force. I can Plant Export both of them properly without problems. However, only file A can run on Simulink in batch mode. The error I got is:

"Error reported by S-function 'adams_plant' in 'adams_subroutine/adams_sub/ADAMS Plant/S-Function':
Internal Error during execution of command 4. AEI_Initialize: Error in initialization."

My assumption is that when I Plant Export file B, it also creates a .x_t file containing the "imported geometry" from SolidWorks and ADAMS has to load that geometry, but to do so it also has to open the application. Is there a way to run file B in batch mode? My suggestion would be to "write a preamble" in order to load those files on startup of the Simulink model, but I don't know how to do so.


2. Another task on the same project is to create a surface using Perlin Noise via Matlab. I created the surface via a script and exported as .stl file, but ADAMS won't open this file (despite the correct import). Is there any other way?


Thanks!
 

Part and Inventory Search

Sponsor