S-Function Builder Output directory

I have a Simulink Realtime model. In several model locations, I need to include system log outputs simliar to this tutorial using SFunctionBuilder. Is there a way to specify the output directory for those? Right now, I generate a lot of .mat, .mexw64 and .cpp files for each SFunctionBuilder directly in the main directory of my project, which becomes really messy. Is there any way to specify a subdirectory for those build artifacts, similar to the _slrealtime_rtw and slprj directories?

답변 (1개)

Amit Dhakite
Amit Dhakite 2023년 3월 16일

1 개 추천

Hi Hans,
I understand that you would like to have S-Function files generated in a specific directory, instead of the default main directory.
After reviewing your question, I have found a similar issue addressed in a MATLAB Answer. You can find the link to this thread attached below:

댓글 수: 1

Hans W
Hans W 2023년 3월 18일
Thanks! Unfortunatley this looks like a global "setting", I'd need this to be project local so it sync via git, otherwise I need to make those changes to all of their computers. But maybe there is just no option for that currently. Thanks anyway! :)

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2023년 1월 30일

댓글:

2023년 3월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by