"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)
Afficher commentaires plus anciens
Frank Hofmann
le 12 Mai 2022
Réponse apportée : Frank Hofmann
le 31 Mai 2022
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
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?
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!