Notifications when a Simulink block parameters change

조회 수: 1 (최근 30일)
Ivan Stankovic
Ivan Stankovic 2013년 2월 11일
Hi,
is it possible to get notifications when the parameters of Simulink blocks are changed, and if it is, how?
I was hoping that event listeners would be of help, but they seem to be specific to simulation.
  댓글 수: 2
Ryan G
Ryan G 2013년 2월 11일
When are you looking to be notified? Are you using source control?
Ivan Stankovic
Ivan Stankovic 2013년 2월 12일
I'd simply like to have a Matlab function called whenever a parameter is changed so that I can react on the change.

댓글을 달려면 로그인하십시오.

채택된 답변

Kaustubha Govind
Kaustubha Govind 2013년 2월 12일
I think this is possible for Mask parameters using dialog callbacks as described on this blog post, but don't know that it's possible for regular block parameters. You should probably create a mask for all the blocks that you want to configure with such a callback.
  댓글 수: 2
Ivan Stankovic
Ivan Stankovic 2013년 2월 12일
Thanks for your answer, but unfortunately, creating a mask for every block inside a model is very tedious and is not really an option for me.
I was hoping for a solution along the lines of get_param/set_param: (e.g. a function notify_when_param_changes(param, func)). Ideally, the solution would not involve GUI in any way.
Kaustubha Govind
Kaustubha Govind 2013년 2월 14일
Ivan: Unfortunately, I don't think this is currently possible. Please feel free to confirm this with MathWorks Tech Support and submit an enhancement request.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by