郑建荣联合仿真例子MATLAB中出现'adams_sys_/adams_sub/ADAMS Plant' cannot b
ADAMS_sysWarning: 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 ;:(
Re:
adams_plant文件已经在工作目录下了呀Re:
老大现在好了吗? A new block named 'adams_sys_/adams_sub/ADAMS Plant' cannot be added.m文件里定义了模块的具体加入,所以要将adams_sys.mdl删除,然后重新运行>>adams_sys即可 我的建议:
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步的操作 :handshake :handshake Error reported by S-function 'adams_plant' in block 'untitled/adams_sub/ADAMS Plant/S-Function':
Could not connect to ADAMS server 这又是什么问题呢?Error reported by S-function 'adams_plant' in block 'untitled/adams_sub/ADAMS Plant/S-Function':
Could not connect to ADAMS server
谢谢大家指教 :handshake 请问你的问题解决了么?
页:
[1]