matlab 定时器执行模式,Matlab在使用加速模式运行模型的时候,模型一直报错。...
使用matlab 2013b版本,windows8.1 64位操作系统。
安装SDK,VC 2012。可以正常mex任何C文件。
以管理员模式,各种兼容模式都运行过,错误依旧。
错误描述:
Error(s) encountered while building model "APU"
Component: Simulink | Category: Build error
Problem creating Accelerator MEX file for model 'APU'.
Error(s) encountered while building model "APU"
注:这是报的两个error。
主界面里也有一大段代码:
### Generating code into build folder: C:\***\slprj\accel\APU
N_PWORKS = 18
numParams = 11
nStates = 4
nInputs = 7
nOutputs = 11
nSwitch = 5
Ts = 1e-05
NPARAMS_TOTAL = 11
### Invoking Target Language Compiler on APU.rtw
### Using System Target File: D:\Matlab 2014a\rtw\c\accel\accel.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
### Caching model source code
### Writing header file APU_acc.h
### Writing header file APU_acc_types.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rt_look1d.h
### Writing source file rt_look1d.c
### Writing header file rt_look.h
### Writing source file rt_look.c
### Writing source file APU_acc.c
### Writing header file APU_acc_private.h
### Writing source file APU_acc_data.c
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### Writing header file rt_defines.h
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### TLC code generation complete.
### Processing Template Makefile: D:\Matlab 2014a\rtw\c\accel\accel_vcx64.tmf
### APU.mk which is generated from D:\Matlab 2014a\rtw\c\accel\accel_vcx64.tmf is up to date
### Building APU: .\APU.bat
C:\Users\***\slprj\accel\APU>call "D:\Visual Studio 2012\VC\VCVARSALL.BAT" amd64
Microsoft (R) 程序维护实用工具 11.00.50727.1 版
版权所有 (C) Microsoft Corporation。保留所有权利。
### Compiling APU_acc.c
D:\Matlab 2014a\bin\mex -c -win64 OPTIMFLAGS="/Od /Oy- /DNDEBUG" -f "C:\Users\***\AppData\Roaming\MathWorks\MATLAB\R2014a\mex_C_win64.xml" APU_acc.c
'D:\Matlab' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
NMAKE : fatal error U1077: “D:\Matlab”: 返回代码“0x1”
Stop.
The make command returned an error of 2
'An_error_occurred_during_the_call_to_make' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
更多推荐



所有评论(0)