Real-Time Workshop    

Parameters: Storage, Interfacing, and Tuning

Simulink external mode (see External Mode) offers a quick and easy way to monitor signals and modify parameter values while generated model code executes. However, external mode may not be appropriate for your application in some cases. The S-function and DOS targets do not support external mode, for example. For other targets, you may want your existing code to access parameters and signals of a model directly, rather than using the external mode communications mechanism.

This section discusses how Real-Time Workshop generates parameter storage declarations, and how you can generate the storage declarations you need to interface block parameters to your code. For guidance on implementing a parameter tuning interface using a C-API, see C API for Parameter Tuning.


  Working with Data Structures Storage of Nontunable Parameters