ADAMS 2012 and Matlab 2012 Co-Simulation error

9 visualizaciones (últimos 30 días)
Pouya Jamali
Pouya Jamali el 16 de Jun. de 2012
Respondida: mohammad ebrahimy el 18 de Dic. de 2021
Dear all I want to Co-simulate an Adams model provided by MD_ADAMS 2012 x64 with Matlab Simulink r2012a but there is a problem. that is: when I run the Simulink block diagram that contains adams plant I see the following error message>> Error in S-function 'testmecanum/adams_sub/ADAMS Plant/S-Function': S-Function 'adams_plant' does not exist. Any body know how can I overcome this problem?
All the best

Respuesta aceptada

Pouya Jamali
Pouya Jamali el 16 de Jun. de 2012
I found it. Here is the solution:
One file is missing from The MD_ADAMS 2012 x64 installation process. you must download it from MSC.Software official website and install it in the recommended path. take a look at this article : <http://simcompanion.mscsoftware.com/infocenter/index?page=content&id=KI8008249&actp=search&searchid=1339844767117>
  3 comentarios
jone
jone el 9 de Abr. de 2014
Hi pouya jamali I have same problem but with adams 2013.2 Student edition and matlab 2012a on windows 7 x64 when I tried to follow same step in the link you posted I didn't find win64 directory in path "C:\MSC.Software\Adams_Student_Edition\2013_2\controls" there is win32 directory so can you help me please
thank you very much
Pouya Jamali
Pouya Jamali el 4 de Feb. de 2015
Sorry for my late reply jone,
I guess you need to find the same file but for a 32-bit platform. search it over simcompanion.

Iniciar sesión para comentar.

Más respuestas (2)

Wan Ding
Wan Ding el 31 de Mayo de 2017
Editada: Wan Ding el 31 de Mayo de 2017

mohammad ebrahimy
mohammad ebrahimy el 18 de Dic. de 2021
Hi
I've been trying to connect adams with simulink using adams controll plugin
and i dealt with different errors from simulink, and sometimes simulnk crashed without any error displayed.
finally i solved it by observing these notes:
1. pick a good "working directory" in your adams model. so you better not to set your working directory inside adams software or adams instalation file directory. also no extera files should be in that folder, just your adams model simulink files and those files created by adams controll should be there. you can change working directory in your model choose: files - select directory.
2. in adams controll plant setting, do not write anything for "user define library name" just keep it blank. also the "adams Host name" must be the name of your computer in case your model created on another computer, you should change it.
3. if you have this error in adams: "There are (number of) objects named "character" in the database", you just need to run a simple simulation to renew it.
4. if you built connection files using adams controll plant in the past you cannot built it again since adams dosen't remove previous files, you should remove all the previous files and/or other adams control project files then press ok.
5. DO NOT PRESS SAVE IN adams_sys.slx I did that once and it corrupt my adams instalation files (if you have same problem, go to 8) . you better not run it, just copy the orange block in your simulink model.
6. before runing simulink model make sure matlab current folder is your working directory. if not, you should run the m file built by adams and then press "change folder".
7. sometimes adams version and matlab version are not Compatible. (I tried to connect adams 2020 with matlab 2014 and failed but adams 2020 with matlab 2016 worked properly.)
8. if you think you might damaged your adams files. you can repair it with adams CD or Installation file.
9. some of my notes are not needed so if you run the simulink without error you don't need to change anything else so good luck.

Categorías

Más información sobre Prepare Model Inputs and Outputs en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by