Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Enabling 'Rapid Accelerator' simulation mode in Simulink

337 views
Skip to first unread message

Green Knight

unread,
Sep 27, 2009, 10:24:01 PM9/27/09
to
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.

Green Knight

unread,
Sep 27, 2009, 10:50:17 PM9/27/09
to
Update:

Via cmd.exe, I now have:

C:\>set VS80COMNTOOLS
Environment variable VS80COMNTOOLS not defined

C:\>set VS90COMNTOOLS
Environment variable VS80COMNTOOLS not defined

%So, still in cmd.exe I set the "80" path
C:\>set VS80COMNTOOLS VS80COMNTOOLS=C:\Program Files <x86>\Microsoft Visual Studio 9.0\Common7\Tools

%and then set the "90" path
C:\>set VS90COMNTOOLS VS90COMNTOOLS=C:\Program Files <x86>\Microsoft Visual Studio 9.0\Common7\Tools

...but now VS90COMNTOOLS is apparently defined as a double directory path....

%checking "80" here
"set VS80COMNTOOLS" now displays "VS80COMNTOOLS=C:\Program Files <x86>\Microsoft Visual Studio 9.0\Common7\Tools"

but

%checking "90" here
"set VS90COMNTOOLS now displays "VS90COMNTOOLS=C:\Program Files <x86>\Microsoft Visual Studio 9.0\Common7\Tools VS90COMNTOOLS=C:\Program Files <x86>\Microsoft Visual Studio 9.0\Common7\Tools"

yikes! ...and stating "set VS90COMNTOOLS=" now results in it listing...

"set VS80COMNTOOLS" now displays "VS90COMNTOOLS VS90COMNTOOLS=C:\Program Files <x86>\Microsoft Visual Studio 9.0\Common7\Tools"


As previously suggested, I've also ran:
"
mex -setup % Select Visual Studio 2008
copyfile(fullfile(matlabroot,'extern','examples','mex','yprime.c'))
mex -v yprime.c
yprime(1,1:4)
"

and I do get the 4 expected prime examples. My 'Rapid Accelerator' still will not run.

Help & ridicule welcomed.

Arnaud Miege

unread,
Sep 28, 2009, 4:13:04 AM9/28/09
to

"Green Knight " <GreenK...@yahoo.com> wrote in message
news:h9p6o1$kj3$1...@fred.mathworks.com...

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


Green Knight

unread,
Sep 28, 2009, 10:18:03 AM9/28/09
to
That worked! Thank you!

... checking the environmental variables through the Windows GUI through the link provided above, VS90COMNTOOLS was already set to the Visual Studio path, but VS80COMNTOOLS was not even created.

I created it, and then used the same path that VS90COMNTOOLS uses and the 'Rapid Accelerator' now works completely.

Thanks!

Indira

unread,
Mar 17, 2011, 4:39:05 PM3/17/11
to
"Green Knight" wrote in message <h9qgiq$gjp$1...@fred.mathworks.com>...


Hi,
I have the same problem, I use Windows 7 64-bits and Matlab R2009a, but I don't have VS80 neither VS90, I have VS100... What can I do to run accelerator mode??

Thanks!!

jainish...@gmail.com

unread,
Sep 3, 2013, 10:04:31 AM9/3/13
to
0 new messages