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

reset,stop,pause in simulink?

661 views
Skip to first unread message

redHeli

unread,
Aug 27, 2005, 3:41:57 AM8/27/05
to
How can I realize the feature of reset ,stop ,pause in the Simulink,what is
based on
the input of the simulink blocks without mouse.

I have found a block named "stop" in simulink ,

anybody know what shall i do , m function? s-function?


Don Orofino

unread,
Aug 28, 2005, 7:46:20 PM8/28/05
to
Hi Xiao,

This may address one part of your question. I recently created an example
showing how to perform a "simulation pause" from an Simulink M-S-Function
block. It's sort of a conditional breakpoint for Simulink, with the block
reacting to values on the input port. It's on MATLAB Central, under
Utilities -> Simulink -> Simulation Pause:

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=7907&objectType=file

The block only allows pause; for stop, you can use the Simulink Stop block,
or easily modify the M-S-Function in the example to perform the stop.

What did you mean by "reset"? Start over at time zero?

Regards,
--Don

"redHeli" <xiao...@yahoo.com.cn> wrote in message
news:E6742988CB8F6298...@in.webx.raydaftYaTP...

miran_kosec

unread,
Aug 29, 2005, 8:01:38 AM8/29/05
to

set_param('name_of_your_simulink_model','SimulationCommand','start');
set_param('name_of_your_simulink_model','SimulationCommand','stop');
set_param('name_of_your_simulink_model','SimulationCommand','paused');

Wey Fun

unread,
Mar 25, 2010, 7:40:24 AM3/25/10
to
Hi;

I need to reset a model within an m-file. I know using :
set_param(model, 'SimulationCommand', 'start')
set_param(model, 'SimulationCommand', 'stop')

can start ans stop a model within a m-file. But how about reseting - i.e. stopping the model and then re-starting from initial condition, time = 0 ?

Thanks.

0 new messages