搜索
汉力达液压金币充值官方微信群液压资料下载
查看: 12316|回复: 5

win10 ,AMESIM MATLAB 联合仿真

[复制链接]
  • 打卡等级:偶尔看看
  • 打卡总天数:84
  • 打卡总奖励:373
发表于 2017-5-31 18:39:17 | 显示全部楼层 |阅读模式
1)两个软件都可以单独正常运行
2)编译软件用的vs2010
3 )运行错误代码如下,来大神啊。我熬夜弄了两天了!!!!
C:\Program Files (x86)\LMS\LMS Imagine.Lab AMESim\v1400\AMEcompile.bat initiates a 64 bit compilation
Setting environment for using Microsoft Visual Studio 2010 x64 tools.
Microsoft (R) 3ìDòά»¤êμóÃ1¤¾ß 10.00.30319.01 °æ
°æè¨ËùóD(C) Microsoft Corporation¡£±£áôËùóDè¨àû¡£
"C:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400\interfaces\simulink\win32\amemexcompile" cl.exe -c -DWIN32 -DAMESIMULINK -I"C:\Program Files\MATLAB\R2016a/extern/include" -I"C:\Program Files\MATLAB\R2016a/simulink/include" -I"C:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400/interfaces/simulink" -I"C:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400/interfaces" -I"C:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400\lib" -nologo -DWIN32 -MT -W3 -Od -D "_MBCS" -EHsc -wd4996 -bigobj -o AMESimulinkCosimulation_.obj AMESimulinkCosimulation_.c
.
Executing cl.exe "-c" "-DWIN32" "-DAMESIMULINK" "-IC:\Program Files\MATLAB\R2016a/extern/include" "-IC:\Program Files\MATLAB\R2016a/simulink/include" "-IC:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400/interfaces/simulink" "-IC:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400/interfaces" "-IC:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400\lib" "-nologo" "-DWIN32" "-MT" "-W3" "-Od" "-D" "_MBCS" "-EHsc" "-wd4996" "-bigobj" "-o" "AMESimulinkCosimulation_.obj" "AMESimulinkCosimulation_.c"
cl: ÃüáîDD warning D9035 :¡°o¡±Ñ¡ÏîòÑ·ñ¾ö£¬2¢½«Ôú½«à′μÄ°æ±¾ÖDòÆ3y
AMESimulinkCosimulation_.c
AMESimulinkCosimulation_.c(784) : warning C4101: ¡°errmsg¡±: Î′òyóÃμľÖ2¿±äá¿
C:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400/interfaces/simulink\ame_simulink_cosim.h(300) : warning C4267: ¡°3õê¼»ˉ¡±: ′ó¡°size_t¡±×a»»μ½¡°int¡±£¬¿éÄü¶aê§êy¾Y
C:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400/interfaces/simulink\ame_simulink_cosim.h(301) : warning C4267: ¡°3õê¼»ˉ¡±: ′ó¡°size_t¡±×a»»μ½¡°int¡±£¬¿éÄü¶aê§êy¾Y
C:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400/interfaces/simulink\ame_simulink_cosim.h(302) : warning C4267: ¡°3õê¼»ˉ¡±: ′ó¡°size_t¡±×a»»μ½¡°int¡±£¬¿éÄü¶aê§êy¾Y
C:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400/interfaces/simulink\ame_simulink_cosim.h(354) : warning C4267: ¡°3õê¼»ˉ¡±: ′ó¡°size_t¡±×a»»μ½¡°int¡±£¬¿éÄü¶aê§êy¾Y
C:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400/interfaces/simulink\ame_simulink_cosim.h(355) : warning C4267: ¡°3õê¼»ˉ¡±: ′ó¡°size_t¡±×a»»μ½¡°int¡±£¬¿éÄü¶aê§êy¾Y
C:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400/interfaces/simulink\ame_simulink_cosim.h(356) : warning C4267: ¡°3õê¼»ˉ¡±: ′ó¡°size_t¡±×a»»μ½¡°int¡±£¬¿éÄü¶aê§êy¾Y
C:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400/interfaces/simulink\ame_simulink_cosim.h(551) : warning C4267: ¡°3õê¼»ˉ¡±: ′ó¡°size_t¡±×a»»μ½¡°int¡±£¬¿éÄü¶aê§êy¾Y
AMESimulinkCosimulation_.make.link_args =
"c:/program files (x86)/lms/lms imagine.lab amesim/v1400/libhydr/submodels/win64/SV00.obj" "c:/program files (x86)/lms/lms imagine.lab amesim/v1400/libhydr/submodels/win64/H3NODE1.obj" "c:/program files (x86)/lms/lms imagine.lab amesim/v1400/libhydr/submodels/win64/HYDFPM01.obj" "c:/program files (x86)/lms/lms imagine.lab amesim/v1400/libhydr/submodels/win64/TK000.obj" "c:/program files (x86)/lms/lms imagine.lab amesim/v1400/libhydr/submodels/win64/HJ000.obj" "c:/program files (x86)/lms/lms imagine.lab amesim/v1400/libmec/submodels/win64/DT000.obj" "c:/program files (x86)/lms/lms imagine.lab amesim/v1400/libmec/submodels/win64/F000.obj" "c:/program files (x86)/lms/lms imagine.lab amesim/v1400/libhydr/submodels/win64/RV000.obj" "c:/program files (x86)/lms/lms imagine.lab amesim/v1400/libhydr/submodels/win64/PT002.obj" "c:/program files (x86)/lms/lms imagine.lab amesim/v1400/libmec/submodels/win64/PMV00.obj" "c:/program files (x86)/lms/lms imagine.lab amesim/v1400/libhydr/submodels/win64/FP04.obj" "c:/program files (x86)/lms/lms imagine.lab amesim/v1400/libhydr/submodels/win64/HL000.obj" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libsig/lib/win64/SIG.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libhcd/lib/win64/HCD.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libhr/lib/win64/HR.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libpcd/lib/win64/PCD.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libthcd/lib/win64/THCD.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libtr/lib/win64/TR.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libfi/lib/win64/FI.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libcs/lib/win64/CS.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libem/lib/win64/EM.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libac/lib/win64/AC.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libemd/lib/win64/EMD.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libmec/lib/win64/MEC.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libdrv/lib/win64/DRV.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libplm/lib/win64/PLM.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libth/lib/win64/TH.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libtpf/lib/win64/TPF.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libheat/lib/win64/HEAT.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libdv/lib/win64/DV.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/lib/utils/lib/win64/OASES_win64.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libicar/lib/win64/ICAR.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libma/lib/win64/MA.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libcosim/lib/win64/generic_cosim.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libcosim/lib/win64/amegeneric_cosim.lib" ws2_32.lib "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libesc/lib/win64/ESC.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libesg/lib/win64/ESG.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libec/lib/win64/EC.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libae/lib/win64/AE.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libcf/lib/win64/CF.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libcfd1d/lib/win64/CFD1D.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libeng/lib/win64/ENG.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libexh/lib/win64/EXH.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libhydr/lib/win64/HYDR.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libaero/lib/win64/AERO.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libace/lib/win64/ACE.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libpn/lib/win64/PN.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libgm/lib/win64/GM.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libthh/lib/win64/THH.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libacf/lib/win64/ACF.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libess/lib/win64/ESS.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libm6dof/lib/win64/M6DOF.lib" "C:/Program Files (x86)/LMS/LMS Imagine.Lab Amesim/v1400/libmotion/lib/win64/AMEMOTION.lib"
"C:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400\interfaces\simulink\win32\amemex" -o AMESimulinkCosimulation_.mexw64 AMESimulinkCosimulation_.obj @"AMESimulinkCosimulation_.make.link_args" "C:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400\lib\win64\AME.lib" -link -nologo -NODEFAULTLIB:LIBCD.LIB -NODEFAULTLIB:LIBC.LIB -NODEFAULTLIB:LIBCMTD.LIB -NODEFAULTLIB:LIBCP.LIB -NODEFAULTLIB:LIBCPD.LIB
***************************************************
*
* Creating LMS Amesim => Simulink S-Function
* $Date: 2014-10-16 14:22:03 +0200 (Thu, 16 Oct 2014) $
*
* using MATLAB: 'C:\Program Files\MATLAB\R2016a'
* which seems to be a 64-bit MATLAB
*
*
***************************************************
.
Executing "C:\Program Files\MATLAB\R2016a\bin\mex.bat" AMESimulinkCosimulation_.obj @AMESimulinkCosimulation_.make.link_args @AMESimulinkCosimulation_objfilelist.txt
gcc: error: ws2_32.lib: No such file or directory
ê1óà 'MinGW64 Compiler (C)' ±àòë¡£
NMAKE : fatal error U1077: ¡°"C:\Program Files (x86)\LMS\LMS Imagine.Lab Amesim\v1400\interfaces\simulink\win32\amemex.EXE"¡±: ·μ»Ø′úÂë¡°0xffffffff¡±
Stop.
′Ëê±2»ó|óD \LMS\LMS¡£


  • 打卡等级:偶尔看看
  • 打卡总天数:84
  • 打卡总奖励:373
 楼主| 发表于 2017-5-31 18:39:56 | 显示全部楼层
本帖最后由 1084743973 于 2019-4-16 15:53 编辑

已经成功了,用不上了
回复

使用道具 举报

发表于 2017-6-1 11:42:47 来自手机 | 显示全部楼层
我估计你设置的有问题,编译器编译不正确。另外最好在安装路径里面不要有空格,否则容易出错
回复

使用道具 举报

  • 打卡等级:偶尔看看
  • 打卡总天数:84
  • 打卡总奖励:373
 楼主| 发表于 2017-6-2 10:03:13 | 显示全部楼层
本人已经安装成功,总之就是不用win10,win7 64位最合适
回复

使用道具 举报

发表于 2018-9-21 15:46:00 | 显示全部楼层
楼主问题解决了嘛?
回复

使用道具 举报

发表于 2019-1-6 11:53:20 | 显示全部楼层
楼主的问题怎么解决的,求指点,多谢~求助大神,amesim与simulink联合仿真不成功~ https://www.iyeya.cn/thread-64559-1-1.html (出处: 液压圈)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则