MATLAB function (Simulink) - "Error calling generated SFunction Invalid MEX-file: Access is denied."
Show older comments
I have a Simulink model which has only the default MATLAB Function block (the input to the block to sent out as the output fromthe block). When I run this model without saving the model, it works. If I save the model and try to run it, I get the following error -
"Error calling generated SFunction, MATLAB_func_simple_test_25102016_sfun. Invalid MEX-file 'S:\Research\MATLAB_func_simple_test_25102016_sfun.mexw64': Access is denied."
I had a look at Mathworks forums and questions on similar issues and tried the following: 1. Ensured that the Simulink model and the MEX file were built using the same version of MATLAB on the same computer. 2. Tried deleting the MEX file and the slprj folder and tried re-running the Simulink model.
I am running MATLAB R2014b 64-bit.
Answers (0)
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!