In my model I use Simulink.Parameter objects to specify the properties of block parameters when generating code. I need to create an S-function to protect my intellectual property when handing parts of my model to customers. Simulink.Parameter objects are tunable by default when generating an S-function, but I want some of them to be non-tunable. Since I have a lot of parameters I want to use a script-based way to declare my Simulink.Parameter objects to be tunable or non-tunable for automatic S-function generation.
MATLAB: How to set parameters to be tunable from the command-line when generating an S-function in Real-Time Workshop 6.6 (R2007a)
simulink coder
Best Answer