Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simulink

79 views
Skip to first unread message

Kevin

unread,
Dec 2, 2010, 8:06:05 PM12/2/10
to
I'm currently self-learning Simulink:

On a Simulink model, what block can I use that terminates the run when it reaches a certain condition?

For example, I have a variable z. When z reaches 0, the block will end the run and t would stop at that point.

Thanks for your responses in advance.

Michael

unread,
Dec 2, 2010, 8:55:05 PM12/2/10
to

Hi Kevin,

The block you're looking for is the Stop block, see,

http://www.mathworks.com/help/toolbox/simulink/slref/stopsimulation.html

The block stops the simulation when the input is nonzero. So you may need a logic block in front of the Stop block to get the right signal value.

Mike

"Kevin " <xscz...@gmail.com> wrote in message <id9fps$iv8$1...@fred.mathworks.com>...

0 new messages