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?

Answers (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 Comment

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! :)

Sign in to comment.

Categories

Find more on Simulink Coder in Help Center and File Exchange

Asked:

on 30 Jan 2023

Commented:

on 18 Mar 2023

Community Treasure Hunt

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

Start Hunting!