| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Real-Time Workshop |
| Contents | Index |
| Learn more about Real-Time Workshop |
The following blocks have a Realization parameter that affects the tunability of their parameters:
Transfer Fcn
State-Space
Discrete State-Space
The Realization parameter must be set by using the MATLAB set_param function, as in the following example.
set_param(gcb,'Realization','auto')
The following values are defined for the Realization parameter:
general: The block's parameters are preserved in the generated code, permitting parameters to be tuned.
sparse: The block's parameters are represented in the code by transformed values that increase the computational efficiency. Because of the transformation, the block's parameters are no longer tunable.
auto: This setting is the default. A general realization is used if one or more of the block's parameters are tunable. Otherwise sparse is used.
The Real-Time Workshop product can generate reusable (reentrant) code for a model containing identical atomic subsystems. Selecting the Reusable function option for Real-Time Workshop system code enables such code reuse, and causes a single function with arguments to be generated that is called when any of the identical atomic subsystem executes. See Reusable Function Option for details and restrictions on the use of this option.
Mask parameters become arguments to reusable functions. However, for reuse to occur, each instance of a reusable subsystem must declare the same set of mask parameters. If, for example subsystem A has mask parameters b and K, and subsystem B has mask parameters c and K, then code reuse is not possible, and the Real-Time Workshop product will generate separate functions for A and B.
![]() | Tunable Expressions | Parameter Configuration Quick Reference Diagram | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |