フィルターのクリア

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

1 回表示 (過去 30 日間)
Dave Lee
Dave Lee 2019 年 8 月 2 日
コメント済み: Philippe Fischer 2020 年 4 月 28 日
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
Philippe Fischer 2020 年 4 月 28 日
Same question...does anybody know..it seems to work in rapid accelerator..

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

製品


リリース

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by