I have a subsystem which only contains a ground and a terminator block connected to each other. When I double-click the subsystem-block, it calls an m-file. Where can this functionality be hidden?

 采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2015-6-25

0 个投票

Right click on your subsystem, click on properties, there may be any callback

1 个评论

Swantje
Swantje 2015-6-25
编辑:Swantje 2015-6-25
You were right. But I didn't know I had to highlight the right callback function in the list in order to see the content. Now I found it. Thanks.

请先登录,再进行评论。

更多回答(1 个)

Titus Edelhofer
Titus Edelhofer 2015-6-25

1 个投票

An alternative is to go to the simulink preferences and enable "Callback tracing". Then you will see a printout in the command window for each fired callback.

4 个评论

Thanks, I found it! Callback tracing helped. Didn't know I had to highlight the callback function in order to see the content. That's why I couldnt find it before.
Glad to hear. For the next time: there should have been a "*" in front of the non empty callback.
Ups, sorry, I didnt know I could not accept both answers. The tracing actually helped me more.
No worries at all! When I wrote this it overlapped with you already accepting Azzi's answer which is perfectly fine ...

请先登录,再进行评论。

类别

在 帮助中心 和 File 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