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 Healthcare (HC) > FlexSim HC: Q&A
Downloads

FlexSim HC: Q&A Questions about FlexSim Healthcare

  #1  
Old 03-25-2010
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 Tips & Tricks: Set run speed in Flexsim HC

I am not sure if someone else needs it, but it took me a while to figure out how to set the run speed in Flexsim HC and update the main panel. Thanks to Cliff for giving me a hint how to update the scroll bar and develop such a nice piece of software which is called Flexsim HC.

I like if my models always start with the same run speed, that’s why I use this code in nearly every model.

Here is the code I use if I set the run speed to 12, which I do normally in a User Event at OnReset:

// SET RUNSPEED
double dRunspeed = 12.00;
treenode ScrollBar =
node("/active/Main Panel/bar2/runspeedpanel/ScrollBarPanel/ScrollBar",views());
treenode RunSpeed =
node("/active/Main Panel/bar2/runspeedpanel/ScrollBarPanel/RunSpeed",views());
set(node("MAIN:/project/exec/step"), dRunspeed / 60);
int iDecimals =
2;
if(dRunspeed >
10) iDecimals = 1;
if(dRunspeed >
100) iDecimals = 0;
sets(node(">value", RunSpeed), numtostring(dRunspeed, 0, iDecimals));
setnodenum(node(">itemcurrent", ScrollBar), dRunspeed / 60);
setnodenum(node(">value", ScrollBar), dRunspeed / 60);
applylinks(ScrollBar, 1);
applylinks(RunSpeed, 1);
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions."
The Following 4 Users Say Thank You to Tom David For This Useful Post:
Sung Kim (03-26-2010)
  #2  
Old 04-09-2010
Cliff King's Avatar
Cliff King Cliff King is offline
Vice President Technical Services
 
Join Date: Jul 2007
Location: Utah
Posts: 272
Downloads: 158
Uploads: 14
Thanks: 102
Thanked 304 Times in 110 Posts
Rep Power: 412
Cliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud of
Default

Version 2.7 (currently released in BETA form to a select group of users) has a command setrunspeed() command to handle the setting of the model runspeed, and updating the related toolbar information as well. On a related note, the new version has the following shortcut keys which you might be interested in as well:

Ctrl+Up arrow to increase runspeed (rounds off to the nearest reasonable speed, so it's easy to stick on 1 if desired)
Ctrl+Down arrow to decrease runspeed (also rounds)
Ctrl+Left arrow to reset the model
Ctrl+Right arrow to step through events of model
Ctrl+Space bar to toggle between run and stop the model run
Ctrl+T to open the Track Manager
Ctrl+R to open the Flowcharting tool (R for "Routes")
The Following 5 Users Say Thank You to Cliff King For This Useful Post:
Tom David (04-12-2010)

Tags
runspeed


Thread Thread Starter Forum Replies Last Post
Keeping run speed after closing the model Lydia Franck Gripes and Goodies 4 05-06-2009 03:38 AM
Model Speed Alistair Smitheman Q&A 14 04-06-2009 12:45 PM
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.