| 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 Real-Time Workshop product offers a number of options that let you control how signals in your model are stored and represented in the generated code. This section discusses how you can use these options to
Control whether signal storage is declared in global memory space or locally in functions (that is, in stack variables).
Control the allocation of stack space when using local storage.
Ensure that particular signals are stored in unique memory locations by declaring them as test points.
Reduce memory usage by instructing the Real-Time Workshop product to store signals in reusable buffers.
Control whether or not signals declared in generated code are interfaceable (visible) to externally written code. You can also specify that signals are to be stored in locations declared by externally written code.
Preserve the symbolic names of signals in generated code by using signal labels.
The discussion in the following sections refers to code generated from signal_examp, the model shown in the next figure.
Signal_examp Model

![]() | Signal Considerations | Signal Storage Concepts | ![]() |

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 |