Problem creating Accelerator MEX file for simulink model in windows 10
조회 수: 19 (최근 30일)
이전 댓글 표시
Hello,
I am trying to run a Simulink model in Accelerator mode in Windows 10 and I get the following error:
Problem creating Accelerator MEX file for model 'xxx'
Failed to build model 'xxx' using LCC in accelerator mode, please consider using MSVC instead.
This is an error I don't get when running the model in a different version of Windows. I've seem people with similar issues, but I haven't really found a clear solution or work around. Does anyone has an idea of what I could try to get the accelerator mode working in windows 10. It is worth mentioning, that I am using a work laptop and the admin rights are limited.
Thank you very much,
Luis Hurtado
댓글 수: 0
답변 (3개)
Quan Tao
2017년 8월 2일
Assuming you did not see this problem before with the same model on other versions of Windows machines, it seems to be a platform-related, or more specifically, compiler-related issue.
A possible solution is to change to another compiler, as implied by the error message. To change the compiler type, at the MATLAB command prompt, type:
mex -setup
MATLAB displays a message with links to set up a different compiler. Please check if you can get the accelerator mode working with other compilers.
To learn more about how to set up a different compiler, please refer to the documentation page on Change Default Compiler.
You can also find out all supported compilers for the MATLAB release your are working with. For R2017a, please refer to Supported and Compatible Compilers for R2017a.
댓글 수: 0
Marcos Victorio
2022년 10월 9일
I got the same problem and after some tries I found out that the current folder of my command window wasn't the same where the mex file was saved. So I soved the problem by just changing the command window folder to the correct one.
댓글 수: 1
Odibert Eid
2022년 11월 8일
Hi, can you please write step-by-step instructions? I am facing a similar issue, and it isn't allowing us to finish our project for school.
Lu Gao
2023년 12월 16일
Hello I met the same problem and hope to get some help, many thanks.
I run a simulink model successfully in accelerator mode, but when I add a "mean" to a variable, I got the same error
Problem creating Accelerator MEX file for model 'xxx'
Failed to build model 'xxx' using LCC in accelerator mode, please consider using MSVC instead.
And if I run in normal mode, it also runs successfully.
댓글 수: 1
Marcos Victorio
2023년 12월 16일
Have you tried changing the command window folder to the folder where your mex file is saved?
Are you sure the problem just happens when you add the mean block? It seems really strange to me.
Is your simulation in the continuous or discrete mode?
What have you set for the powergui block?
참고 항목
카테고리
Help Center 및 File Exchange에서 Manual Performance Optimization에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!