Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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

Risposte (0)

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Prodotti


Release

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by