How can I use a compiler on Simulink 7.2 (on Matlab 7.7) running on Windows 7

1 view (last 30 days)
I am attempting to use an Embedded MATLAB Function block in Simulink 7.2 (from Matlab 7.7) on a Windows 7 machine. I have installed Visual C++ 2008 and Windows Server 2008 & .NET 3.5 SDK following the guide from: http://www.mathworks.com/matlabcentral/answers/98351
However, I am reviving this error when I try to run a simple Embedded MATLAB Function:
Message: Code Error Source: Unknown: Reported by: Stateflow Summary: The mex compiler 'Microsoft Visual C++ 2008 Express' is not supported for simulation builds. Use 'mex -setup' to select a supported compiler
Any thoughts on how I can fix this?
Thanks, Tom

Answers (2)

Andreas Goser
Andreas Goser on 10 Dec 2013
Edited: Andreas Goser on 10 Dec 2013
Simulink 7.2 is from Release 2008b and the supported compilers are listed here for Win32 and here for Win64. There is a column for Simulink Embedded MATLAB.

Tom
Tom on 10 Dec 2013
Thanks, so I've installed Visual C++ 2005 Express which should work with the Windows Server 2008 & .NET 3.5 SDK which should work?
Now I have the error:
Message: Make Error Reported By: Make Summary: Making simulation target "untitled1_sfun", ...
C:\Users\username\Documents\MATLAB\slprj\_sfprj\untitled1\_self\sfun\src>call "mexopts.bat" 'nmake' is not recognized as an internal or external command, operable program or batch file.
Help!

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!