iCAx开思网

标题: 【讨论】集中讨论 adams/matlab 联合仿真技术吧? [打印本页]

作者: astone    时间: 2003-7-25 15:58
标题: 【讨论】集中讨论 adams/matlab 联合仿真技术吧?
我只能提供一个链接:
  
https://support.adams.com/kb/faq.asp?ID=kb8965.dasp
  
最近做天线那个例子,老是有问题!
  
https://www.fea-league.com/ 也有一些关于 adams /matlab 的文章,
  
但是,看来大家的错误形形色色! 我得到的错误也不一样!
  
建议高手:
  
1        在不泄密、或者影响**利益的前提下,能不能公布一些案例?
      
       其实可以把课题中的模型简化修改,只要能反应  adams /matlab  
  
            联合仿真的主要过程,这里的菜鸟们就感激不尽了!! 先向高
  
            手们表示崇高的敬意!!
  
2         仿真过程中的一些需要注意的细节,学习的体会! 我想,每个人
  
        的体会不一样,发现的细节不一样,您的好心,将使很多人少走
            
             好多弯路,也使很多人能有信心和勇气继续学习下去,壮大用
  
              户队伍,说来惭愧,我快要没有信心了。
  
3          问个问题: adams /matlab  联合仿真的时候,adams是否没有必
  
            要打开?好像应该关掉?因为我们只有一个license 云云?(KB里
  
            面的话,我好像不是很懂)
  
4          让讨论热烈些吧!!
  
很好的讨论题目,加1分鼓励一下。 BY Jeriflee
  
  
作者: astone    时间: 2003-7-25 16:10
2. Opening up Matlab:
  
As noted above, close ADAMS unless you have 2 or more licenses available for View and Solver.  
  
Change to the working directory where the files from your plant export exist. Typing the name of the file (Mymodel) will run the Mymodel.m file in the working directory. This sets up Matlab variables that contain all of the info from step 1.) above.  
  
Type 'adams_sys' - this is built into Matlab and it reads in the variable values, creating a Simulink block diagram named 'adams_sys_'. It is from this window that you drag the 'adams_sub' to another, new or existing Simulink block diagram window. To create a new block diagram window do a File -> New in the 'adams_sys_' window. Opening a saved block diagram is a File -> Open.  
  
==========================================
  
3. Simulating:
  
Double clicking the adams_sub block to see it's internals. There should be a box named 'Mechanical Dynamics' in the middle - double click this to set interaction parameters that Matlab uses when it instantiates ADAMS View or Solver. The interactive animation mode uses View, the batch uses Solver and is much faster. The simulation mode should be set to discrete to use the Controls package integrators on the Controls side and the ADAMS integrators on the ADAMS side. This is the most robust method at this time.  
  
Close all of the block diagram windows except for the one that has your control system and the adams_sub block. From this window you set the Simulation parameters (on the Matlab side) and start the simulation. Simulation results are dumped to the working directory having the file prefixes as specified in the 'output files prefix' box when you double-clicked on the Mechanical Dynamics block in the above paragraph. If 'Myoutput' was the prefix entered, you should see files named Myoutput.res, Myoutput.req, Myoutput.out, Myoutput.gra in this directory.  
  
   
  
  
作者: astone    时间: 2003-7-25 20:30
control  studentguide 中说, Input element 和 Output Element
  
中定义状态变量的顺序非常重要,偶就是没有搞明白WHY?
作者: astone    时间: 2003-7-25 21:37
小样的!
  
我做那个天线没有成功,今天我耐心地做 guider 中的 beam_ball,还是
  
没有成功!
  
我把D:\ADAMS 12.0\controls 下的所有的  *.dll  文件 copy到 工作目录
  
下,还是出错,并且,“天线”那个例子和“beam_ball”那个例子的错误一
  
样!!
  
明天我出去旅游,但愿回来柳暗花明,
  
郑重承诺,一旦仿真成功,我写一个仿真的经过! 哎!只怕没有机会!!
作者: fondboy    时间: 2003-7-28 22:38
我做了个用MATLAB 控制四竿机构的旋转角度
虽然大才小用但是也算连接成功
作者: fondboy    时间: 2003-7-28 22:42
astone  
在我做的当中有几点心得:你很有可能是不是MATLAB中的文件没有保存就进行仿真这样用可能不成功
记得建立,修改后一定要把文件保存后才能仿真运行
你可以在试试例题
祝你成功
如有问题可以给我发EMAIL:FONDBOY@etang.com
作者: fondboy    时间: 2003-7-28 22:44
中定义状态变量的顺序非常重要,偶就是没有搞明白WHY?
这个问题的顺序没有什么关系吧
这到没有碰到我什么问题
作者: astone    时间: 2003-7-29 14:13
谢谢 fondboy !!
  
你说的问题我也考虑过,存盘也没有用!
  
我先放几天再说,这几天在看flex模块的使用,根据课题的需要,
  
希望能做到  adams / flex+nastran(or ANSYS) +simulink ;
  
大家多多交流,共同进步! 有问题,我会给你发邮件的!谢谢1!
  
========================
另外,我看联机教程的收获就是:
  
1    教程中说:在simulink + adams 时,不用打开adams的,好像还必须
        关掉?
  
2     关于adams+matlab的仿真,李军书中时依据adams11写的,adams12
       和adams11好像有点不同,主要在定义输入、输出变量时有所不同,
       大家尽量看联机教程好了!
  
3    我觉得困难在于,仿真出现问题后,根据出错提示,无所适从,
  
       不能从提示中得到有价值的信息,也不知道采用什么对策;
作者: fondboy    时间: 2003-7-29 22:37
关于第一条收获:
在仿真是可以不打开ADAMS你可以让方针的结果保存为文件,也可以让他自启动ADAMS作为显示来用,但是你打开了ADAMS对你的仿真没有影响,我是在ADAMS12中测试的
作者: alf    时间: 2006-3-29 23:49
标题: 写个简单的教程
不用太复杂,主要是关注过程,我也是老是调不通一个例子,感觉很失败,不知道到底哪里的错误
我的版本ADAMS2005+matlab7.0
有时的错误是:can't conect adams server.
我设置的是pipe连接方式,不知道什么原因,望解答
作者: FoRdHNU    时间: 2006-8-9 16:38
你试着不改变输出文件夹,使用系统默认的,我以前出现过这样的情况,用2003vs6.5 success
作者: Davin2008    时间: 2007-12-24 14:53
alf:你可以把adams_plane.dll和dedode.exe文件复制到工作目录,最好把工作目录设置为matlab/works,
作者: shenliangdada    时间: 2009-6-24 19:04
出现的错误为:Block error S-Function Simulink Error in S-function’antenna/adams_sub1ADAMS Plant/S-Function’:S-Function’adams_plant’does not exist 我用的是ADAMS2007,已经将adams_plant.mexw32考到MATLAB和ADAMS公用的工作目录下了,但还是出现同样的错误,请高手再指点下,谢谢!
作者: gugen    时间: 2010-4-25 14:01
学习中
谢谢各位的不息赐教
作者: liuronaldo    时间: 2010-7-4 14:39
我还是不太明白
作者: 卡布拉蒂希诺    时间: 2011-12-3 21:00
Error in 'adams_matlab2/adams_sub/ADAMS Plant': Parameter 'ADAMS_outputs' cannot be evaluated.  MATLAB error message: Undefined function or variable 'ADAMS_outputs'.  什么错误》》》》???
作者: ciwei123456    时间: 2017-3-6 16:53
用Adams2013和matlab2014能行吗?好像大家都用的旧版本




欢迎光临 iCAx开思网 (https://www.icax.org/) Powered by Discuz! X3.3