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.
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>...