Changing Tunable parameters from inside the model

11 ビュー (過去 30 日間)
David
David 2011 年 7 月 11 日
Hello! My diploma thesis deals with code generation via the Real Time Workshop for a TI DSP. I am using tunable parameters to change values for certain blocks during runtime. For instance, I have a variable named "gain" in my Matlab workspace. As I declared it to be "exported global", it also appears in the generated C-code. During runtime, I change the value by use of a serial communication protocol. Now, I want to automatically let the generated program change one of those values, depending on the model state. Does anyone have an idea how to do this in Simulink so that the code does what I want?

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2011 年 7 月 11 日

カテゴリ

Help Center および File ExchangeC Code Generation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by