Pro\ENGINEER与MATLAB\simulink联合仿真设置
Pro\ENGINEER与MATLAB\simulink联合仿真设置,转载请注明(/bssdlkhzau/ihome/myblog)
一、首先确认安装proe时,安装了pro/toolkit,如下为pro/toolkit安装说明
1、在默认安装时是不安装pro/toolkit,在安装过程中选择pro/toolkit,如下图
注意:安装proe时,安装目录不要有空格,在进行二次开发时,有空格容易出错。
二、安装matlab工具smlink工具,可以到matlab官方下载,免费的。
1、安装smlink(可以到/products/simmechanics/download_smlink.html 下载)。
1)将smlink30.win32.zip和install_addon.m放入MATLAB起始位置目录下面,打开matlab
2) 在MATLAB命令窗口输入install_addon('<add-on ZIP file name>')命令,引号内是下载的压缩文件名;
3) 运行上述命令,命令窗口提示
Installing smlink...
Extracting archive smlink31.win32.zip to C:\Program Files\MATLAB\R2009a...
Adding directories for smlink to path...
Installation of smlink complete.
To view documentation, type "doc smlink".
2、设置proe里simmechanicls插件
1)找到pro/toolkit安装目录,在目录里找到protk.dat文件(如果没有可以自己创建,随便命名),如我的是在D:\Program Files\proeWildfire 4.0\protoolkit\protk.dat
2)用记事本打开protk.dat文件,向里面添加
如果是Pro/ENGINEER Wildfire 3 以及早期版本如2001、2.0等添加如下内容:
name SimMechanics Link
startup dll
exec_file $matlabroot/bin/arch/cl_proe2sm.dll
text_dir $matlabroot/toolbox/physmod/smlink/cad_systems/proe/
end
Pro/ENGINEER Wildfire 4 及以后版本如5.0添加如下内容的如下:
name SimMechanics Link
startup dll
exec_file $matlabroot/bin/arch/cl_proe2sm.dll
text_dir $matlabroot/toolbox/physmod/smlink/cad_systems/proe/ unicode_encoding false
end
注,以上$matlabroot为绝对路径,可以参考本人设置,我的protk.dat文件添加内容如下(我的为4.0版本,装置d盘)
NAME SimMechanics Link
STARTUP dll
EXEC_FILE D:\Program Files\MATLAB\R2010b\bin\win32\cl_proe2sm.dll
TEXT_DIR D:\Program Files\MATLAB\R2010b\toolbox\physmod\smlink\cad_systems\proe\text UNICODE_ENCODING false
END
添加完成后保存文件
3)修改proe气动目录下的config.pro(如果没有此文件可自行创建)文件,用记事本打开此文件,向里面添加如下内容:
toolkit_registry_file D:\Program Files\proeWildfire 4.0\protoolkit\protk.dat
4)保存文件后,打开proe可以看到菜单栏多出
5)至此已完成,可以自行测试,将proe文件导出为xml格式。
进入simmechanics里测试,命令如下
xml文件调用方法:
import_physmod(or mech_import)或import_physmod(or mech_import)(‘*.xml’)导入模型。
如下为一些参考网站,
protoolkit安装:/s/blog_515365250100ddbv.html
联合仿真官网说明:/help/toolbox/physmod/smlink/ref/brnjwm7-1.html 联合仿真实例:/products/simmechanics/demos.html
solidworks与matlab联合仿真设置:
/home.php?mod=space&uid=361679&do=blog&id=283874
proe和matlab联合仿真配置:
/bgwangjun/blog/item/68d7842a8d5c2f91023bf609.html
ug和matlab联合仿真实例:/v_show/id_XMTk3Nzg3OTIw.html
matlab里机械仿真系统simmechanicas实例:/user_show/id_UMjQ4MzExODI0.html。