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 09-21-2010
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 runspeed with 2 parameters?

If I want to use runspeed in a DLL, I have to pass in 2 parameters. Could development tell me what the second parameter does? And can we get the current speed back with using -1 as the first parameter?

Before the release of V5 I made a remark about the overshooting when the runspeed was set to 1. http://www.flexsim.com/community/for...speed#post5880

That was put on the development list but I was wondering if it has been solved? My simple test as described in the post still gives quite an overshoot

I just tested using stop and go compared to using runspeed 2 times. Stop and Go is about 44 times slower then using runspeed So I would like to use the runspeed option very much!
The Following User Says Thank You to Steven Hamoen For This Useful Post:
mgiubilato (09-23-2010)
  #2  
Old 09-21-2010
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

The 2nd parameter is not used. It may have been used in previous versions, and it is probably still there for compatibility reasons, but the function doesn't actually use the 2nd parameter at all in 5.0.4.

The overshooting issue is still on the development list. I don't think it has been addressed yet.
The Following User Says Thank You to Phil BoBo For This Useful Post:
mgiubilato (09-23-2010)
  #3  
Old 09-24-2010
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

Ok, then I would like here to get some extra or new ideas:

The problems is that my simulation models communicates with a real time system with several messages per real time second via sockets in a DLL. I have to stop the simulation everytime with the communication because we have to synchronise time. So now the problem is the following:

Stop and go are taking from 0.25 seconds upwards. With a number of msg exchanges per seconds this is not acceptable because the model doesn't run at all and you might end up being slower then real time.

Using runspeed is fast but doesn't work

I've tried combining the runspeed function with delayevents(1000) and delayevents(-1000) but that doesn't help and the model doesn't work correct

An option that works but that is not stable is using a while loop when you send the message and get out of the while loop when the returning message is received. But that doesn't block flexsim so when some other code is hit that might continue to work. In any case the model doesn't behave the same as with stop and go and sometimes doesn't continue so it is not stable enough to use.

So I'm running out of ideas. Anybody?
  #4  
Old 10-01-2010
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

Quote:
Originally Posted by Steven Hamoen View Post
And can we get the current speed back with using -1 as the first parameter?
Yes, calling runspeed(-1) currently does return the run speed.


Thread Thread Starter Forum Replies Last Post
Passing parameters in executefsnode Sung Kim Q&A 2 06-01-2010 09:37 AM
Influence of runspeed Maurits Brandt Q&A 6 12-14-2007 08: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.