Thread Subject: Is there any mechanism to terminate simulink from inside simulink?

Subject: Is there any mechanism to terminate simulink from inside simulink?

From: leaf

Date: 22 Nov, 2009 03:45:13

Message: 1 of 2

For example, if some output (or intermediate) signal is too large, the
computation will terminate automatically and will try another input
signal. So it won't take as long as originally determined such as,
say, 2000 seconds. Because if the computation goes on (don't
terminate it automatically), the simulation will break down, and my
running program can't continue. So I have to termiate simulink before
signals go to Inf. Further, I want to keep the data already obtained.
Is this possible? Thanks.

Subject: Is there any mechanism to terminate simulink from inside simulink?

From: Arnaud Miege

Date: 23 Nov, 2009 10:09:40

Message: 2 of 2


"leaf" <yedong.ye@gmail.com> wrote in message
news:6ecb0baf-60c9-4601-8819-a72852ebe524@s31g2000yqs.googlegroups.com...
> For example, if some output (or intermediate) signal is too large, the
> computation will terminate automatically and will try another input
> signal. So it won't take as long as originally determined such as,
> say, 2000 seconds. Because if the computation goes on (don't
> terminate it automatically), the simulation will break down, and my
> running program can't continue. So I have to termiate simulink before
> signals go to Inf. Further, I want to keep the data already obtained.
> Is this possible? Thanks.
>

Use the stop block:
http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/stopsimulation.html

HTH,

Arnaud

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com