Real-Time Workshop Previous page   Next Page

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.


Previous page  Sample Time Propagation in Generated S-Functions Automated S-Function Generation Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS