Real-Time Workshop    

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.


  Sample Time Propagation in Generated S-Functions Automated S-Function Generation