ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 05-06-2008
KelvinHo KelvinHo is offline
Flexsim User
 
Join Date: Jan 2008
Location: Hong Kong
Posts: 129
Downloads: 18
Uploads: 1
Thanks: 44
Thanked 23 Times in 7 Posts
Rep Power: 171
KelvinHo will become famous soon enough
Default In what cases the running simulation would stop itself?

Hi all,

I found that my simulation would stop itself while it run for some times, I think there should be some bug in my own coding, but I would like to know in what cases the running simulation would stop itself?

If the case is I'm using a source time table as shown in:

http://www.flexsim.com/community/for...read.php?t=424

If in the mid of the day there is no input to the model and all the previous processing is finished, will the simulation be paused even in the time table there will be input in later time.
  #2  
Old 05-08-2008
Brandon Peterson's Avatar
Brandon Peterson Brandon Peterson is offline
The Flexsim Consultant
 
Join Date: Jul 2007
Location: Salt Lake City, Utah
Posts: 382
Downloads: 29
Uploads: 6
Thanks: 192
Thanked 516 Times in 235 Posts
Rep Power: 490
Brandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant future
Default

Kelvin,

First, have you tried hitting run after the model stops? It may be that you have code in the model or a stop time set that you have forgotten about.

If that didn't work then this is a problem that nobody will be able to help you with unless they can see your model. Models just randomly stopping like this is usuall the cause of one of three problems:

1. No more events.
2. Infinite Code Loop.
3. Infinite Event Loop.

The infinite code loops usually tend to lock the computer up as well as stop the simulation clock so they are the easiest to diagnose as the problem.

An infinite event loop will continue to create events that happen at the same instant in simulation time and so the model appears to have stopped but hasn't. So this is an entirely different problem from the code loop. To check to see if the model is out of events or looping events go to the main view in a tree window. The events node is in the exec node. If there are events in the node then this is probably a case where you have an infinite event loop. From here it should be basic debugging to find the node and fix the problem.

Good Luck,
Brandon
__________________
thats not normal.
The Following User Says Thank You to Brandon Peterson For This Useful Post:
arunkrmahadeva (12-25-2015)


Thread Thread Starter Forum Replies Last Post
error message "Clock overflow, running stopped" Martin Kooijman Q&A 11 04-17-2008 10:29 AM
How to run tasks after stop time? Fadhlullah Bin Rahmat Q&A 1 02-26-2008 04:44 PM
Stop conveyor on loading mathiasds Q&A 2 11-20-2007 04:31 PM
Flexsim instance is still running for over a minute Martin Saler Q&A 1 10-04-2007 11:44 PM
Stop message with information (Debugging) Tom David Tips and Tricks 0 09-20-2007 01:10 AM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.