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

3 vues (au cours des 30 derniers jours)
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?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Coder dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by