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

1 次查看(过去 30 天)
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by