Thread Subject: Wait a second!

Subject: Wait a second!

From: Prashant Sandhi

Date: 11 Feb, 2010 12:23:04

Message: 1 of 7

Dear friends,
 
              IS there any way to make a 'pause' or wait for 'one second' during the simulink simulation and then the simulation should start on its own after waiting for 'one second'

Sandhi

Subject: Wait a second!

From: Wayne King

Date: 11 Feb, 2010 12:43:04

Message: 2 of 7

"Prashant Sandhi" <sanddhi7@gmail.com> wrote in message <hl0sr8$msu$1@fred.mathworks.com>...
> Dear friends,
>
> IS there any way to make a 'pause' or wait for 'one second' during the simulink simulation and then the simulation should start on its own after waiting for 'one second'
>
> Sandhi

Hi Sandhi, how about using an assertion block from the Model Verification Library?

See

http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/ug/f11-31373.html#f11-31548

for a use case.

Wayne

Subject: Wait a second!

From: Prashant Sandhi

Date: 11 Feb, 2010 12:51:04

Message: 3 of 7

Assertion block is used to pause the simulation after a certain time of simulation has been run. But in my case I cannot say after 5 sec of simulation 'pause'. But What I am looking for is when ever I pass through this 'pause' then it should always just 'pause for one sec and then proceed for simulation.



"Wayne King" <wmkingty@gmail.com> wrote in message <hl0u0o$8ep$1@fred.mathworks.com>...
> "Prashant Sandhi" <sanddhi7@gmail.com> wrote in message <hl0sr8$msu$1@fred.mathworks.com>...
> > Dear friends,
> >
> > IS there any way to make a 'pause' or wait for 'one second' during the simulink simulation and then the simulation should start on its own after waiting for 'one second'
> >
> > Sandhi
>
> Hi Sandhi, how about using an assertion block from the Model Verification Library?
>
> See
>
> http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/ug/f11-31373.html#f11-31548
>
> for a use case.
>
> Wayne

Subject: Wait a second!

From: Eskil Jönsson

Date: 11 Feb, 2010 12:59:05

Message: 4 of 7

> IS there any way to make a 'pause' or wait for 'one second' during the simulink simulation and then the simulation should start on its own after waiting for 'one second'
>
> Sandhi

Maybe I am just stupid, but can't you just use pause(1)?

Subject: Wait a second!

From: Prashant Sandhi

Date: 11 Feb, 2010 13:10:22

Message: 5 of 7

No Mr.Jönsson You are not at all 'Stupid '. Do you mean that I should write 'Pause(1)' in the Assertion block under 'Simulation callback when assertion fails'. What should be the clock and constant values?

"Eskil Jönsson" <eskil_j@hotmail.com> wrote in message <hl0uup$977$1@fred.mathworks.com>...
> > IS there any way to make a 'pause' or wait for 'one second' during the simulink simulation and then the simulation should start on its own after waiting for 'one second'
> >
> > Sandhi
>
> Maybe I am just stupid, but can't you just use pause(1)?

Subject: Wait a second!

From: Wayne King

Date: 11 Feb, 2010 13:12:04

Message: 6 of 7

"Eskil Jönsson" <eskil_j@hotmail.com> wrote in message <hl0uup$977$1@fred.mathworks.com>...
> > IS there any way to make a 'pause' or wait for 'one second' during the simulink simulation and then the simulation should start on its own after waiting for 'one second'
> >
> > Sandhi
>
> Maybe I am just stupid, but can't you just use pause(1)?

Hi Eskil, the OP is asking about Simulink, how are you using the MATLAB function pause() in a Simulink model?
Wayne

Subject: Wait a second!

From: Prashant Sandhi

Date: 11 Feb, 2010 13:23:02

Message: 7 of 7

Yes Mr. Eskil, I would like to know if there is a block in simulink or any other way so that I can implenment in the middle of simulink blocks and pause the simulation for 1 sec and then continue. I will later connect one of the outputs of my simulink out put to this 'pause one sec' block as a feedback. This will cause the simulation 1sec pause when ever it passes through this 'pause' or ' wait' one secong.

"Wayne King" <wmkingty@gmail.com> wrote in message <hl0vn4$sl4$1@fred.mathworks.com>...
> "Eskil Jönsson" <eskil_j@hotmail.com> wrote in message <hl0uup$977$1@fred.mathworks.com>...
> > > IS there any way to make a 'pause' or wait for 'one second' during the simulink simulation and then the simulation should start on its own after waiting for 'one second'
> > >
> > > Sandhi
> >
> > Maybe I am just stupid, but can't you just use pause(1)?
>
> Hi Eskil, the OP is asking about Simulink, how are you using the MATLAB function pause() in a Simulink model?
> Wayne

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