Find: Simulink callbacks from where?

1 次查看(过去 30 天)
Leif
Leif 2013-9-18
I've a model which calls a callback function, but I just can't find the exact block which calls for it.
Is there a way to find from where a callback is produced/requested ?
Thanks!
  1 个评论
Kaustubha Govind
Kaustubha Govind 2013-9-18
Typically, if you set a breakpoint in the function and run gcb when it stops, it should tell you which block is calling the function.

请先登录,再进行评论。

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-9-18
编辑:Azzi Abdelmalek 2013-9-18
Right click on your model, then choose model properties, you will find callbacks, look for Init or other callbacks
  1 个评论
Leif
Leif 2013-9-18
I couldn't find it there, that's why I'm asking. The same in block > properties > callbacks.
But the Model works definitely only with the callback function in workspace.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Model, 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