Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop   

Linear Block Parameter Tunability

The following blocks have a Realization parameter that affects the tunability of their parameters:

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:

Code Reuse for Subsystems with Mask Parameters

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.

  


Related Products & Applications

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