| 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 |
This section discusses how the Real-Time Workshop product generates parameter storage declarations, and how you can generate the storage declarations you need to interface block parameters to your code.
If you are using S-functions in your model and intend to tune their run-time parameters in the generated code, see Tuning Run-Time Parameters in the Simulink documentation. Note that
Parameters must be numeric, logical, or character arrays.
Parameters may not be sparse.
Parameter arrays must not be greater than 2 dimensions.
For guidance on implementing a parameter tuning interface using a C API, see Interacting with Target Application Signals and Parameters Using the C API.
Simulink external mode offers a way to monitor signals and modify parameter values while generated model code executes. However, external mode might not be appropriate for your application in some cases. The S-function target does not support external mode, for example. For other targets, you might want your existing code to access parameters and signals of a model directly, rather than using the external mode communications mechanism. For information on external mode, see Communicating With Code Executing on a Target System Using Simulink External Mode.
![]() | Parameter Considerations | Nontunable Parameter Storage | ![]() |

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 |