Guy on 亚搏国际网页

亚搏国际网页 & Model-Based Design

Who’s Calling?

Did you know that it is possible to visualize the calling of 亚搏国际网页 Functions using the Sequence Viewer? Let's see how that works and in what type of situations it can be particularly useful.

The Question

Here is a question I have recently been asked:

I have a 亚搏国际网页 model with a 亚搏国际网页 Function. The model contains multiple Function CAller blocks that can call this 亚搏国际网页 Function. The 亚搏国际网页 Function contains a MATLAB Function block. When I put a breakpoint in the MATLAB Code, I want to know from which Function Caller block originated the call.

Who's calling?

The Sequence Viewer

The answer is a feature I typically use when dealing with Simwww.yaobo205 and Stateflow: The Sequence Viewer.

Sequence Viewer

When the breakpoint in the MATLAB Function block will be hit, you will know that the last client in the list is the one calling. In this image, we are at simulation time t=1sec, and the client is CallerB:

Sequence Viewer

Now it's your turn

Are you using the Sequence Viewer in your daily workflow? If yes, tell us why and how in the comments below.



To leave a comment, please click here to sign in to your MathWorks Account or create a new one.