From: Emmanuelle M on
Hello, I'm having trouble running cosimulation with Adams/Controls 2010 and Matlab 6.5.
I tried to follow the tutorial of Adams/Controls with the antenna example. I can export the plant from Adams, run the .m file (ant_test.m). Matlab echoes:

%%% INFO : ADAMS plant actuators names :
1 control_torque
%%% INFO : ADAMS plant sensors names :
1 rotor_velocity
2 azimuth_position

as said in the tutorial. I can also diplay other information like ADAMS_outputs without any trouble.
But when I try to create the Adams block diagram by entering adams_sys I have the following error:

??? Error using ==> add_block
There is no block named 'adams_sys_template/S-Function'.


Error in ==> C:\MSC~1.SOF\MSC_AD~1\2010\\controls\matlab\adams_sys.m
On line 106 ==> add_block([sys,'/S-Function'] ,[sys,'/adams_sub/ADAMS Plant'],...

I have the same error with the other examples (karussel, ball_beam...). So I tried to run mdl files included in the examples files but the simulink window remains empty with several warning messages such as:

Warning: Loading model 'ball_beam_mdl' generated with a newer version (6.5) of Simulink.
> In C:\MATLAB6p5\toolbox\matlab\general\private\openmdl.m at line 13
In C:\MATLAB6p5\toolbox\matlab\general\open.m at line 125
In C:\MATLAB6p5\toolbox\matlab\uitools\uiopen.m at line 142


So I am wondering if there an incompatibility between the Adams version and the Matlab version. Does any of you experienced the same problem?
Thank you very much
Emmanuelle