function file mexw32 format error in simulink model
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
My friend sent me his simulink poject with all files of it in mexw32 format. In project there is an embeded function block. When I try to run that project I'm taking errors like that "Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler."
Can someone help me How can I run this simulink model without error. Should I copy mexw32 files to somewhere in matlab folder?
0 Kommentare
Antworten (1)
Zack Peters
am 29 Okt. 2013
The Embedded Function block generates a MEX file out of the MATLAB code that is in it. In order to successfully do so, it requires that a supported compiler has been properly setup for that installation of MATLAB.
As the error messages suggests, you can setup your compiler by typing
>> mex -setup
If you do not have a supported compiler installed on your machine, a list of supported compilers can be found here.
~Zack
1 Kommentar
shamsudheen p
am 17 Mai 2021
I am getting the error message as 'Problem creating Accelerator MEX file for model 'PVarray_Grid_IncCondReg_det' during the simulation of 100-kW Grid-Connected PV Array using MATLAB 2013a on windows 10(32bit).
When i run mex -setup it gave the output as
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2013a\sys\lcc
[0] None
Even I selected the first one the error persists. Please help me to solve the issue
Siehe auch
Kategorien
Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!