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 12-11-2007
Maurits Brandt Maurits Brandt is offline
Flexsim User
 
Join Date: Aug 2007
Posts: 13
Downloads: 24
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 155
Maurits Brandt is on a distinguished road
Default Influence of runspeed

L.S.

In my model the strange thing happens that the runspeed of my model influences the performance. In short, when I run it at a time below say 500x real time then everything goes as expected. However when I speed up a little more the model is not behaving like expected anymore and my production cannot be completed because at some point there seem to be no messages anymore which keep the model running...
Is anybody familiar with this problem or can point out some possible mistake of mine? Preferably I do not share my model with the whole community.
  #2  
Old 12-11-2007
Tom David's Avatar
Tom David Tom David is offline
Flexsim User
 
Join Date: Aug 2007
Location: Schwaebisch Gmuend, Germany
Posts: 430
Downloads: 157
Uploads: 47
Thanks: 486
Thanked 450 Times in 233 Posts
Rep Power: 520
Tom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant future
Default

The only issue I had once was that I checked the xloc() of an item on a conveyor. If you do stuff like this you should be familiar with the command updatelocations().

But from your post it sound, that you use messages for control. Maybe the problem is how and where (which trigger) you send the messages. Without more information it is difficult to think about the possibilites.

I hope that I can expect that you know the difference between sendmessage() and senddelayedmessage() in zero time units.

Anyway, that's all what comes directly to my mind.
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions."
  #3  
Old 12-11-2007
Kris Geisberger Kris Geisberger is offline
Flexsim Canada, Forum Moderator
 
Join Date: Aug 2007
Location: Canada
Posts: 209
Downloads: 54
Uploads: 1
Thanks: 99
Thanked 389 Times in 133 Posts
Rep Power: 451
Kris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud of
Default

I'm curious. Do you pass a flowitem pointer like tonum(item) in your messages? If so, how is it used in the OnMessage?
  #4  
Old 12-13-2007
Maurits Brandt Maurits Brandt is offline
Flexsim User
 
Join Date: Aug 2007
Posts: 13
Downloads: 24
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 155
Maurits Brandt is on a distinguished road
Default runspeed

Hi,

After a lot of searching I found a mistake in a tasksequence which seems to prevent the problem I mentioned because now I can run at unlimited speed. However, if I leave out this statement (an extra message as to prevent the model from running out of messages) the problem exists and I find that strange. Thus, maybe I am still making a fundamental (stupid) mistake at which I should be glad to be pointed at. I added the tasksequence which is in my opinion the source of the troubles. The line with all the asterisks I added lately and seems to help.
Attached Files
File Type: txt Taskequencetxt.txt (12.7 KB, 373 views)
  #5  
Old 12-14-2007
Steven Hamoen's Avatar
Steven Hamoen Steven Hamoen is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Soest, NL
Posts: 854
Downloads: 43
Uploads: 0
Thanks: 391
Thanked 661 Times in 379 Posts
Rep Power: 684
Steven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond repute
Default

Maurits,

Besides the update locations of Tom, we have also find this problem when using kinematics. I don't know if you use that? If so, check if you use updatekinematics enough.


Just the code is for me at least not enough to figure it out. Otherwise if you have it again, send us the model and we will see if we can find it.

Steven Hamoen
Talumis
  #6  
Old 12-14-2007
Maurits Brandt Maurits Brandt is offline
Flexsim User
 
Join Date: Aug 2007
Posts: 13
Downloads: 24
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 155
Maurits Brandt is on a distinguished road
Default runspeed

Hi,
I have solved the problem now completely, and I think I found the source of the problem. At some point in the model I used the value from a non existing column in a global table. I suppose this caused a randomness which sometimes resulted in the problem. Despite my own faults I still found it a strange problem :-)
  #7  
Old 12-14-2007
Steven Hamoen's Avatar
Steven Hamoen Steven Hamoen is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Soest, NL
Posts: 854
Downloads: 43
Uploads: 0
Thanks: 391
Thanked 661 Times in 379 Posts
Rep Power: 684
Steven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond repute
Default

Hi Maurits,


Good to hear that you found it.

Yes these things are very strange, but what internally in the memory of the computer is happening is that you somewhere change a memory position that can be used by anything else in the program so that it is not clear what exactly is influenced by your actions. That it is why it is so strange and unpredictable.

Steven



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.