Count Connector vs End Time

Discuss anything related to ExtendSim or simulation projects. If you have a question about a specific block, please use the appropriate library forum.
Post Reply
Simstarter1
Posts: 9
Joined: Fri Nov 20, 2015 12:21 pm

Count Connector vs End Time

Post by Simstarter1 » Fri Nov 20, 2015 12:41 pm

In the Executive Block I've found an option to stop simulation at the end of a certain count. I've set that to the number of exits. I also see under Simulation setup that I can make the simulation run for X number of minutes.

I'd actually like the sim to stop after 100 runs. But it seems to keep running unit it hits the time set in simulation setup. I see this from my plotter.

How can I get it to stop at 100?

davek
Posts: 75
Joined: Thu Apr 27, 2000 12:00 am
First Name: Dave
Last Name: Krahl

Re: Count Connector vs End Time

Post by davek » Fri Nov 20, 2015 1:11 pm

It sounds like what you have done should work. I have attached a model that stops when the 100th item exits
Attachments
End after 100 items processed.mox
Simulation stops when 100th item exits
(327.74 KiB) Downloaded 573 times

Simstarter1
Posts: 9
Joined: Fri Nov 20, 2015 12:21 pm

Re: Count Connector vs End Time

Post by Simstarter1 » Fri Nov 20, 2015 2:28 pm

Hi Dave,

It says your file was created in a newer version of extendsim so I can't open. Would you mind saving it in an older version or explaining what you did?

davek
Posts: 75
Joined: Thu Apr 27, 2000 12:00 am
First Name: Dave
Last Name: Krahl

Re: Count Connector vs End Time

Post by davek » Fri Nov 20, 2015 4:25 pm

Sorry, I only have ExtendSim 9.2 and 9.1 (which are the same file format). I recommend that you upgrade. I connected the output of the Exit block to the count input on the Executive.

Dave

Post Reply