Real-Time Workshop User's Guide    

Tunable Parameters in Generated S-Functions

You can utilize tunable parameters in generated S-functions in two ways:

S-Function blocks created via the S-function target are automatically masked. The mask displays each tunable parameter in an edit field. By default, the edit field displays the parameter by variable name, as in the following example.

You can choose to display the value of the parameter rather than its variable name. To do this, select Use Value for Tunable Parameters in the Options section.

When this option is chosen, the value of the variable (at code generation time) is displayed in the edit field, as in the following example.


 Creating an S-Function Block from a Subsystem Automated S-Function Generation