Real-Time Workshop User's Guide    

Parameter Tuning via model_pt.c

By enabling the TLC variable ParameterTuning, you can generate a file containing data structures that enable a running program to access model parameters without use of external mode. The file is named model_pt.c.

ParameterTuning is disabled by default. To enable generation of model_pt.c, use a %assign statement in your system target file.

Alternatively, you can append the following command to the System target file field on the Target configuration section of the Real-Time Workshop page.

model_pt.c contains two parameter mapping structures containing information required for parameter tuning:

The structure and content of the model_pt.c file are documented in matlabroot/rtw/c/src/pt_readme.txt. For example source code using the parameter tuning API, see matlabroot/rtw/c/src/pt_print.c.


 Signal Monitoring via Block Outputs Target Language Compiler API for Signals and Parameters