MATLAB: Mode accelerator in Simulink and Windows 7 64-bits

64-bitcMATLABMATLAB Compilermex -setupmodelreal timesimulinksimulink coderwindows 7

Hi,… I have a model in Simulink which can run in normal model, however, in accelerator mode or real-time it doesn't work. It appears a message: "Unable to locate a Visual C/C++. 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". … I have installed the newest version C++ compiler but I can't run the model yet.

Best Answer

Run "mex -setup" from MATLAB command prompt and choose the installed compiler.
Note: Make sure you have a supported compiler.
Related Question