Re: Enabling 'Rapid Accelerator' simulation mode in Simulink
- From: "Arnaud Miege" <arnaud.miege@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 28 Sep 2009 09:13:04 +0100
"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
.
- References:
- Enabling 'Rapid Accelerator' simulation mode in Simulink
- From: Green Knight
- Enabling 'Rapid Accelerator' simulation mode in Simulink
- Prev by Date: Re: Segmenting touching particles
- Next by Date: Re: performance of embedded Matlab blocks
- Previous by thread: Re: Enabling 'Rapid Accelerator' simulation mode in Simulink
- Next by thread: Re: Enabling 'Rapid Accelerator' simulation mode in Simulink
- Index(es):
Relevant Pages
|
Loading