User`s guide
The Real-Time Workshop User Interface
3-19
The RTW Tunable Parameters dialog box supports the following features:
• Parameter tuning — de-inline any model parameter by placing its name in
the
Variable field and clicking Add. This effectively negates the Inline
parameters
check box for the variables you select. All other model
parameters remain inlined.
•
Storage Class — you can change the storage class of the selected variable.
The options in the pull-down menu are as follows:
- Auto — directs the Real-Time Workshop to store the variable in a
persistent data structure. This is the default storage class option for the
Real-Time Workshop.
- Exported Global — declares the variable as a global variable that can be
accessed from outside the generated code.
- Imported Extern — declares the variable as
extern. It must then be
declared from outside the generated code.
- Imported Extern Pointer — declares the variable as an
extern pointer. It
must then be declared from outside the generated code.
These cases are useful if you want to link Real-Time Workshop generated
code to other C code (that is, code that the Real-Time Workshop did not
generate). Note that you are responsible for correctly linking code modules
together.
•
Storage Type Qualifier — prepend any string (for example, const)tothe
variable type declaration by typing it in the
Storage Type Qualifier field.
Note that the Real-Time Workshop does not check this string for errors;
whatever you enter is directly prepended to the variable declaration.
C API for Parameter Tuning. The Real-Time Workshop has support for developing
a C application program interface (API) for tuning parameters independent of
external mode. See the readme located in
matlabroot/rtw/src/
pt_readme.txt
for more information.
Signal Properties
The Real-Time Workshop supports the same storage class options for signals
as it does for parameters. To change the storage class of a signal, select it in