create callback in simulink model when block parameter is modified

3 ビュー (過去 30 日間)
Andi
Andi 2013 年 3 月 15 日
I have a GUI, created by a .m-file, and a simulink model. The synchronisation of values between them (e.g. of a Gain value) is working fine in most cases. Therefore I use callbacks, set_param, RuntimeObject and so on. But so far I didn't find a way to update a value in the GUI when I simply change a model's block parameter (e.g. the Gain parameter within a Gain Block), when the simulation is STOPPED. Because the simulation is stopped, I cannot use RealtimeObject in this case. I could use the model's callback 'PostSaveFcn', but therefore I need to save the model. Is there a kind of 'Block parameter modified callback'? I know it's a detail...
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2013 年 3 月 15 日
Andi: This question has been asked before: http://www.mathworks.com/matlabcentral/answers/63039
Unfortunately, I don't think such a notification is currently available.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeModel, Block, and Port Callbacks についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by