"is not a MEX file" error when compiling a simulink model as s-function on a network share

3 views (last 30 days)
When trying to compile a simulink submodel "mySub" as s-function, with the working directory "U:\Work" on a network share "U:", I get the following error message:
Top model targets built:
Model Action Rebuild Reason
================================================
mySub Failed ForceTopModelBuild was enabled.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 14.992s
'U:\Work\mySub_sf.mexw64' is not a MEX file. For more information, see File is not a MEX file.
When performing the compilation on "c:\work", it works.
When the copying the s-function and mex-file to the network direcory and runnings the model with the s-function, I again get an error message
Error while obtaining sizes from MEX S-function 'mySub_sf' in 'mytest_sfctn/mySub/mySub_sfcn'.
Caused by:
  • Invalid MEX-file 'U:\Work\mySub_sf.mexw64': access denied
My computer has Windows 10 (64-bit).
How can I compile a submodel on a network share, and execute a s-function on a network share? Or is there another hidden reason for the problem, like e.g. network latencies or a virus scanner interference?

Accepted Answer

Frank Hofmann
Frank Hofmann on 31 May 2022
The problem is resoved. It had to do with some configuration of the network share, which actually was a samba share.

More Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!