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

Swantje
Swantje 2015년 6월 25일
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.
Titus Edelhofer
Titus Edelhofer 2015년 6월 25일
편집: Titus Edelhofer 2015년 6월 25일
Glad to hear. For the next time: there should have been a "*" in front of the non empty callback.
Swantje
Swantje 2015년 6월 25일
Ups, sorry, I didnt know I could not accept both answers. The tracing actually helped me more.
Titus Edelhofer
Titus Edelhofer 2015년 6월 29일
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에 대해 자세히 알아보기

제품

태그

질문:

2015년 6월 25일

댓글:

2015년 6월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by