Re: Enabling 'Rapid Accelerator' simulation mode in Simulink




"Green Knight " <GreenKnight50@xxxxxxxxx> wrote in message
news:h9p6o1$kj3$1@xxxxxxxxxxxxxxxxxxxxx
Hello,

My .mdl file runs fine in 'Normal' simulation mode, but takes
approximately 6 minutes to complete. When I attempt to run 'Rapid
Accelerator' mode, I get the error:
------------------------------------------------
(Window Title: Simulation Diagnostics)

Message: Model error
Source: Unknown
Reported By: Simulink

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: 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.
------------------------------------------------

I am running Windows 7 on a x64-bit Core i7, have Visual Studio 2008
installed, with all x64 runtimes, etc. installed as well. I also ran
"mex -setup", which successfully detected Visual Studio's directory and
the 'Rapid Accelerator' mode still gives the same error.

After searching for about an hour online, I found the suggestion, "Try
setting environment variable VS80COMNTOOLS to the same value as
VS90COMNTOOLS." ...but can't figure out how to do this. Anyone know how
to do this?

Any and all help appreciated!

Cheers.


Which release of MATLAB are you using? For R2009b, have a look at:
http://www.mathworks.co.uk/support/compilers/R2009b/win64.html

in particular note 6:

"To use Microsoft Visual Studio with MATLAB on a 64-bit platform, you must
select "X64 Compilers and Tools" when installing Microsoft Visual Studio.
This is not selected by default. Microsoft Visual Studio 2008 Express and
Professional Editions also require that the Microsoft Windows Software
Development Kit (SDK) is installed properly. For more information, see
Solution 1-6IJJ3L."

But it sounds like you have done that, since you are able to mex a C file.
Not sure about Windows &, but to set environment variables in XP, see for
example:
http://support.microsoft.com/kb/310519

HTH,

Arnaud


.



Relevant Pages

  • Re: C# Source to independent (from .net framework) binary compiler (alternative to remotesoft)
    ... installation. ... but programs created for windows will run standalone on all ... A native compiler would be just awesome. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Installing HLA
    ... Default installations of Windows do not ... change the filename to "hw.hla" before HLA will accept it. ... number one HLA installation problem. ... Another option is to code the compiler with some 'smarts' so that it ...
    (alt.lang.asm)
  • Re: Simulink accelerator not working!
    ... In order to compile programs in Matlab and to use Simulink accelerator, ... also installed a C compiler, in my case was Microsoft Visual C++ 2008 SP1 ... Please define one of the following environment variables: ... Microsoft Visual C installation and ensure the appropriate environemnt ...
    (comp.soft-sys.matlab)
  • Re: OT - About lcc-linux32 (was - Re: Should we broaden the topicality of this group?)
    ... In my opinion you should neatly encapsulate lcc's headers in it's ... My own preference would be to put the entire installation under a ... If the environment variables have not been set, the compiler should try ...
    (comp.compilers.lcc)
  • Re: python setup.py install on Vista?
    ... well using windows vista, where the h*** am i supposed to type this? ... It seems that quite a lot of people wondered why python doesn't set ... the environment variable to Python Path in the default installation. ... Click the "Environment Variables" button ...
    (comp.lang.python)