How to enable the rapid accelerator for PLECS simulation
5 次查看(过去 30 天)
显示 更早的评论
Hello! I am doing a simulation in PLECS, which is taking unusually long time. When I tried to run RAPIR accelerated mode it gives following error. I have even installed Visual C++, but it doesn't seems to be working Please help! _________________________________________________________________________________________ Unable to build a standalone executable to simulate the model 'PWM_Inverter' in rapid accelerator mode. This could be because the model has blocks that either do not support code generation or generate code only for specific hardware targets. Models with such blocks cannot be simulated in rapid accelerator mode. The rtwbuild error (message and identifier shown below) may identify these blocks. message: Unable to locate a Visual C/C++, Watcom, Borland, Intel, or LCC compiler. Please define one of the following environment variables:
Real-Time Workshop builds with Microsoft Visual C on 64 bit windows require that the compiler be installed. At least one of these environment variables is expected to be set: VS90COMNTOOLS VS80COMNTOOLS VS90COMNTOOLS
Please check your Microsoft Visual C installation and ensure the appropriate environemnt variable is set. set WATCOM=<WatcomPath> set BORLAND=<BorlandPath> or you can run "mex -setup" to configure the location of your compiler or to use LCC compiler shipped with MATLAB. identifier: 'RTW:compilerConfig:compilerUnavailable'
0 个评论
回答(1 个)
Kaustubha Govind
2011-2-24
In order to run a model in rapid accelerator mode, C code is generated from your model and the compiled binaries are then run. The error that you see is because the software cannot find a supported C/C++ compiler.
To fix, this, first install a supported compiler from the list at: http://www.mathworks.com/support/compilers/R2010b/index.html (Be sure to pick the right release and platform), and then run "mex -setup" in MATLAB.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!