s function builder source generation location
조회 수: 7 (최근 30일)
이전 댓글 표시
I've been using the s function builder for a project and due to a modular design, I currently have 3 wtih plans to expand that as more complicated code is created. The problem is that each s function builder generates source files in the current working directory as stated in the docs here. Each S function builder is generating several files so it clutters up my main directory. I don't mind the mex files being in the main directory and it appears the generated source is not needed after mex files are generated as I can delete them and the simulation will still run without them as long as I don't make changes to the s function builder block.
I've attempted to tell Simulink to generate these files somewhere else using the cache folder and the code generation folder config as described by Simulink.fileGenControl but it seems to ignore those directories entirely. Is there a way to tell the s function builder to generate these files somewhere else? Or, tell it to clean the files up once its done with them? I realize re-generating these can be time consuming but that is worth having a manageable root folder.
댓글 수: 0
답변 (2개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!