How to enable the rapid accelerator for PLECS simulation

조회 수: 7 (최근 30일)
Nihal
Nihal 2011년 2월 24일
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'

답변 (1개)

Kaustubha Govind
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.

카테고리

Help CenterFile 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!

Translated by