|
7552| 2
|
萌新求助,amesim和simulink联合仿真问题,使用sl2amecosim出错 |
|
AMESim版本为2019.1
matlab版本 为2018a,因为看帮助文档说2018a进行了测试没问题 VS2013 按照帮助文档里配置的,但是一直都报这个错误,安装顺序matlab-VS-amesim,有没有做过这个的希望不吝赐教。 拜谢! >> sl2amecosim('Test','C:\AMETest','auto') Using version 2.0 of SL2AMECOSIM. ====> STARTING SL2AMECOSIM CODE GENERATION FOR MODEL TEST... ====> Step #1: Checking system and model... ====> Step #2: Generating code & building OBJ file ### Starting build procedure for model: Test ### Generating code and artifacts to 'Model specific' folder structure ### Generating code into build folder: C:\AMETest\Test_grt_rtw 警告: Root level output logging in 'Dataset' format is not supported in this simulation or code generation mode for model 'Test'. No data will be logged. Suggested Actions: • Set 'Format' to 'Array', 'Structure', or 'Structure with time' to log root level output data - Open • Clear 'Output' to disable logging root level output data - Open ### Invoking Target Language Compiler on Test.rtw ### Using System Target File: D:\Program Files (x86)\matlab2018a\rtw\c\grt\grt.tlc ### Loading TLC function libraries ...... ### Initial pass through model to cache user defined code . ### Caching model source code ........ ### Generating TLC interface API. .... ### Writing source file Test_capi.c .. ### Writing header file Test_capi.h ...................... ### Writing header file Test_types.h ### Writing header file Test.h ### Writing header file rtwtypes.h ### Writing header file builtin_typeid_types.h ### Writing header file multiword_types.h . ### Writing source file Test.c ### Writing header file Test_private.h ### Writing header file rtmodel.h ### Writing source file Test_data.c ### Writing header file rt_nonfinite.h ### Writing source file rt_nonfinite.c ### Writing header file rtGetInf.h . ### Writing source file rtGetInf.c ### Writing header file rtGetNaN.h ### Writing source file rtGetNaN.c ### TLC code generation complete. . ### Processing Template Makefile: D:\Program Files (x86)\Simcenter\2019.1\Amesim\interfaces\sl2ame\ame_cosim_dll_grt_2012b_vc.tmf ### Test.mk which is generated from D:\Program Files (x86)\Simcenter\2019.1\Amesim\interfaces\sl2ame\ame_cosim_dll_grt_2012b_vc.tmf is up to date ### Building Test: .\Test.bat C:\AMETest\Test_grt_rtw>call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\VCVARSALL.BAT" amd64 Microsoft (R) 程序维护实用工具 12.00.21005.1 版 版权所有 (C) Microsoft Corporation。 保留所有权利。 Test.mk(141) : fatal error U1052: 未找到文件“\rtw\c\tools\vctools.mak” Stop. The make command returned an error of 2 'An_error_occurred_during_the_call_to_make' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 ### Creating HTML report file Test_codegen_rpt.html ### Build procedure for model: 'Test' aborted due to an error. ====> Step #3: Restoring initial model configuration 错误使用 RTW/genMakefileAndBuild>invokeTMF Error(s) encountered while building "Test" 出错 RTW/genMakefileAndBuild 出错 RTW/genMakefileAndBuildWrapper 出错 coder.internal.compileStage 出错 coder.internal.ModelBuilder/buildProcedure (line 1238) compileResult = coder.internal.compileStage... 出错 coder.internal.ModelBuilder/make_rtw (line 197) buildResult = buildProcedure... 出错 coder.internal.ModelCodegenMgr/make_rtw (line 8) buildResult = obj.make_rtw(varargin); 出错 make_rtw (line 20) buildResult = h.make_rtw(buildArgs, varargin{:}); 出错 build_target 出错 build_target 出错 build_standalone_rtw_target 出错 slbuild_private 出错 slbuild_private 出错 sl (line 15) [varargout{1:nargout}]=feval(varargin{:}); 出错 slbuild (line 78) sl('slbuild_private', mdl, target, varargin{2:end}); 出错 rtwbuild (line 235) slbuild(sys, 'StandaloneRTWTarget', ... 出错 new_sl2amecosim (line 339) rtwbuild(model); 出错 sl2amecosim (line 71) new_sl2amecosim(model,lib,icon,codegenoptions,debug,treeView); 原因: SL2AMECOSIM cannot build model. | |
|
楼主,请问,你这个问题解决了吗,我也遇到同样的问题
| |
|
楼主问题解决了吗?我也遇到同样的问题了
| |

IP卡
狗仔卡
发表于 2021-3-29 16:31:23
提升卡
置顶卡
变色卡