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
1 个评论
Philippe Fischer
2020-4-28
Same question...does anybody know..it seems to work in rapid accelerator..
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!