Effacer les filtres
Effacer les filtres

How to include files and folders when running Simulink under Accelerator mode

1 vue (au cours des 30 derniers jours)
Dave Lee
Dave Lee le 2 Août 2019
Hi,
I use some tool to generate .mex files to be used in Simulink. These mex files and associate files with them are under a few sub-folders of the main folder. While running in Normal mode is OK, if I run in Accelerator mode, Simulink throws out error for example "fatal error C1083: Cannot open include file: 'file_name.hpp': No such file or directory". If I go ahead and copy these files to the main folder, it can simulate but I wanted go include it somehow so the main folder has better structure. Can anyone suggest a way? I went to Model Configuration Parameters->Code Generation->Custom Code but it seems not work. It would be helpful if there is something like addpath(genpath('.\subfolder_name')); so that we can use relative path and includes all the files under the sub-folder.
Thanks!
Dave
  1 commentaire
Philippe Fischer
Philippe Fischer le 28 Avr 2020
Same question...does anybody know..it seems to work in rapid accelerator..

Connectez-vous pour commenter.

Réponses (0)

Catégories

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

Produits


Version

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by