Clear Filters
Clear Filters

How to enable the rapid accelerator for PLECS simulation

2 views (last 30 days)
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'

Answers (1)

Kaustubha Govind
Kaustubha Govind on 24 Feb 2011
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.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!