I want link ADAMS with MATLAB and control some parameters from ADAMS system in MATLAB. I followed the procedures to make MATLAB compatible file from ADAMS, but it doesn't produce the simulink file (.slx) to be used in MATLAB. How can I resolve this?
I want link ADAMS with MATLAB and control some parameters from ADAMS system in MATLAB. I followed the procedures to make MATLAB compatible file from ADAMS, but it doesn't produce the simulink file (.slx) to be used in MATLAB. How can I resolve this?
The plant export process only creates a .m file. This sets up variables in the Matlab workspace and you can then do 'adams_sys' to create the Adams block.
You don't get a .slx file; you have to create a new (or existing) Simulink model and add the orange Adams block from the 'adams_sys' step into your Simulink model.
I got another problem when trying to generate the simulink block related to my ADAMS system. When I type adams_sys in window command, the following error will show up:
"Error using adams_sys (line 86)
No system or file called 'adams_sys_template' found."
You do not have the proper version of Matlab for your Adams version, maybe?
OR: did you not load the .m file before typing 'adams_sys', maybe? You must load the .m file because it sets up a number of variables.
OR maybe you generated the .m file on one machine and transferred to another computer? That would not work. Make sure that the 'working directory' of ADams, when doing the Plant Export, is the same as the working directory for Matlab.
Can you see how there are 2 files in your working directory named 'adams_sys_template...'? Please delete/remove both of those and try 'adams_sys' again. I think they are temp files that should have been deleted at some point in the process.