You can retrieve parameter name information from your Simulink model in the structure generated by the RSIMGETRTP function by enabling the following option:
rtp = rsimgetrtp('modelname','AddTunableParamInfo','on')
You must enable "Inline parameters" in the Simulink Configuration Parameters pane, and specify as "Tunable parameters" those whose values you want to change during execution without rebuilding the model.
For more information about this option you can read the documentation at the following location and run the following Real-Time Workshop demo:
web([docroot,'/toolbox/rtw/ref/rsimgetrtp.html'])
rtwdemo_rsim_param_tuning
Best Answer