deepinheart 发表于 2005-4-1 17:45:25

郑建荣联合仿真例子MATLAB中出现'adams_sys_/adams_sub/ADAMS Plant' cannot b

ADAMS_sys
Warning: Function call ADAMS_sys invokes inexact match D:\study\ADAMS2~2\controls\matlab\adams_sys.m.

??? Error using ==> add_block
A new block named 'adams_sys_/adams_sub/ADAMS Plant' cannot be added.
Error in ==> adams_sys_fix at 20
   add_block('adams_sys_/S-Function' ,'adams_sys_/adams_sub/ADAMS Plant',...

Error in ==> adams_sys at 50
adams_sys_fix ;:(

deepinheart 发表于 2005-4-1 19:15:48

Re:

adams_plant文件已经在工作目录下了呀

niwei_20xx 发表于 2005-4-10 10:52:47

Re:

老大现在好了吗?

kaliuI 发表于 2006-11-7 22:47:24

A new block named 'adams_sys_/adams_sub/ADAMS Plant' cannot be added.
m文件里定义了模块的具体加入,所以要将adams_sys.mdl删除,然后重新运行>>adams_sys即可

john152 发表于 2008-12-3 23:21:49

我的建议:
1.在ADAMS导出plant之前先在view下运行一下,记住时间长度和步长,要与后面的simulink中的时间和步长一致;
2.导出plant后将**.adm,**.cmd,**.m文件拷入work目录下;
3.确认adams_plant.dll文件在work目录下;
4.即使出现了类似错误提示也不必管它
??? Error using ==> add_block
A new block named 'adams_sys_/adams_sub/ADAMS Plant' cannot be added.

Error in ==> adams_sys_fix at 20
   add_block('adams_sys_/S-Function' ,'adams_sys_/adams_sub/ADAMS Plant',...

Error in ==> adams_sys at 50
adams_sys_fix ;
5.在matlab工作区输入导出的plant名,例如ball_test和adams_sys会出现simulink框图,创建或打开已有的mdl文件,除仿真时间和步长与前面保持一致外,其余变量不必修改
6.如果出现错误提示,关掉matlab重新执行第5步的操作

zgt88 发表于 2008-12-12 15:48:14

:handshake

yangqijiang 发表于 2010-8-10 10:24:24

:handshake

雪_山_飞_狼 发表于 2010-10-24 14:15:12

Error reported by S-function 'adams_plant' in block 'untitled/adams_sub/ADAMS Plant/S-Function':
Could not connect to ADAMS server

雪_山_飞_狼 发表于 2010-10-24 14:15:37

这又是什么问题呢?Error reported by S-function 'adams_plant' in block 'untitled/adams_sub/ADAMS Plant/S-Function':
Could not connect to ADAMS server
谢谢大家指教

451126547@qq.co 发表于 2012-12-1 10:17:52

:handshake

yangqi1224 发表于 2013-4-13 14:25:28

请问你的问题解决了么?
页: [1]
查看完整版本: 郑建荣联合仿真例子MATLAB中出现'adams_sys_/adams_sub/ADAMS Plant' cannot b