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 > Gripes and Goodies
Downloads

Gripes and Goodies Software problems and suggestions

  #1  
Old 04-27-2009
Lydia Franck Lydia Franck is offline
Flexsim User
 
Join Date: Apr 2009
Location: Sankt Augustin, Germany
Posts: 23
Downloads: 0
Uploads: 0
Thanks: 11
Thanked 0 Times in 0 Posts
Rep Power: 135
Lydia Franck is on a distinguished road
Default Keeping run speed after closing the model

When I close my model and open again the run speed is always reset to 4.
If there is a fixed run speed for this model it is possible to code it e.g. in the OnModelOpen trigger. But I think the run speed is not model specific but depends on the situation (presentation, experiments, ...). I would prefer a solution which restores the last value for run speed.

Lydia
  #2  
Old 04-27-2009
Carsten Seehafer's Avatar
Carsten Seehafer Carsten Seehafer is offline
FlexSim Geek
 
Join Date: Oct 2008
Location: Ritterhude, Deutschland
Posts: 230
Downloads: 45
Uploads: 1
Thanks: 474
Thanked 320 Times in 143 Posts
Rep Power: 379
Carsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud ofCarsten Seehafer has much to be proud of
Default

The Run Speed is set in Main://project/exec/step and will not be saved in the model. But you can save the run speed within a model with labels.
I've build a small example which stores the run speed in a label. Just push "Y" to save the run speed and every time the simulation restarts the run speed will loaded from a label "runspeedflag". You have to save the model if you want to keep the last saved speed.

Carsten
Attached Files
File Type: zip Example_KeepRunSpeed_CS.zip (37.7 KB, 246 views)
The Following 3 Users Say Thank You to Carsten Seehafer For This Useful Post:
Tom David (04-30-2009)
  #3  
Old 04-30-2009
Lydia Franck Lydia Franck is offline
Flexsim User
 
Join Date: Apr 2009
Location: Sankt Augustin, Germany
Posts: 23
Downloads: 0
Uploads: 0
Thanks: 11
Thanked 0 Times in 0 Posts
Rep Power: 135
Lydia Franck is on a distinguished road
Default

Thanks a lot! I will test the example as soon as possible (but I'm a bit busy in the moment).

Best wishes, Lydia.
  #4  
Old 04-30-2009
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

Lydia, Carsten,

Another way to do this is to put the following line of code in the On Model Open trigger. The trigger can be located in the Tools-> Model Triggers -> On Model Open Menu.

runspeed(10);

Where 10 is the speed I want the model to be set to.

Carsten has shown a cleaver and good way of implementing a way to save the runspeed to a label. If you wanted another way to do this using the model triggers, so that you didn't have to conciously save the speed. You could use the On Reset or On Run Stop triggers to store the value every time. This way everytime the model was reset or stopped the current speed would be saved. You do have to remember though that in all three cases if you don't save the model then the speed is not saved as well.

If you don't want to save the speed on a particular object you can create a node in the Tools object and store the number there. You can then set and retrieve the number with the setnodenum and getnodenum commands.

Good Luck,
Brandon
__________________
thats not normal.
The Following User Says Thank You to Brandon Peterson For This Useful Post:
Lydia Franck (05-06-2009)
  #5  
Old 05-06-2009
Lydia Franck Lydia Franck is offline
Flexsim User
 
Join Date: Apr 2009
Location: Sankt Augustin, Germany
Posts: 23
Downloads: 0
Uploads: 0
Thanks: 11
Thanked 0 Times in 0 Posts
Rep Power: 135
Lydia Franck is on a distinguished road
Default

Carsten and Brandon,

thank you very much indeed!!

You can even use the OnModelOpen trigger instead of a UserEvent so that the correct run speed is displayed already before pressing Run.

Thanks again and best wishes, Lydia.


Thread Thread Starter Forum Replies Last Post
Model Speed Alistair Smitheman Q&A 14 04-06-2009 12:45 PM
Keeping the Ortho View Window in the background? Nico Zahn Q&A 4 03-10-2009 10:16 AM
Is the CPU usage depending on run speed? Tom David Q&A 1 07-29-2008 01:25 PM
What Slows Down Model Speed? Xavier Jackson Q&A 1 06-26-2008 09:09 AM
Increasing Run Speed Alex Christensen Tips and Tricks 3 05-14-2008 04:11 PM


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.