Adams View model generated and control plant exported through a python script doesn't co-simulate in simulink. Gives an error: Error in Adams(server) simulation startup. AEI_Initialize: Error in initialization.
Has anyone come across this issue?
A Python script is Imported into Adams. The Python script creates the model and control plant. The model can be simulated in Adams without failure, but when I try to co-simulate in Simulink the simulation fails with the following error.
Error reported by S-function 'adams_plant' in 'AdamsSimulink/adams_sub/ADAMS Plant/S-Function': Error in Adams(server) simulation startup. AEI_Initialize: Error in initialization
Unfortunately this is a generic Adams startup issue. Usually, if you run in 'batch' mode for the co-sim (so do NOT use graphics, meaning it will use Adams Solver instead of Adams View) then you will hopefully get a .msg file from Adams Solver. That can contain some debugging information, for example it might say "missing this file..".
So hopefully you can re-run the co-sim in batch mode and get the msg file for some clues. If there is no msg file then it means that Solver didn't even start up. If that is the case then try loading the .adm file on the command line and see if the model loads up properly. Likely it does not and you should see some error messages.
To start Adams Solver on the command line it is something like this: