ATTENTIONThis 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 |
#1
|
|||
|
|||
Changing Model Units
Hi everyone,
Im using Flexsim 6. I have set the model unit during the start of the model in the model unit window as Time - Minutes Length - Meters etc.. But now I want to change the time unit as "seconds". How to change the units..? Thanks in advance. Naren |
#2
|
||||
|
||||
You can change the unit in menu of File>Global Preferences>Environment tab.ces>
Hi.
You can change the unit in menu of File>Global Preferences>Environment tab. |
The Following 2 Users Say Thank You to syseo For This Useful Post: | ||
Sebastian Hemmann (04-18-2013) |
#3
|
||||
|
||||
Once you set the time units in a model, you can't really change the units through normal means. However, you can manually change the model units by changing the values in the tree at model/Tools/ModelUnits. To change to seconds, just change /Time/Name to "second", /Time/Abbreviation to "s", /Time/Multiple to 1, and /Time/Plural to "seconds".
However, this will not change the inherent nature of your model. All it will do is change the way certain values are labeled (and, when you next open the model, it will scale default values in the library so they are based on that new time unit, so when you drop new objects into the model, their default values will be based on the model's units). This means that if you defined your process time in a processor as exponential(0, 10) "minutes", when you subsequently change the model units to seconds, all you've changed is the label of what your processor's process time means, so now your processor's process time is exponential(0, 10) "seconds". This means, if your model was initially created in meters, i.e. operators you created were about 2 "meters" tall, then when you change that model unit to feet, all the operators in your model will now be 2 "feet" tall. Granted any new operators you create after reopening that model will be the proper 6 "feet" tall because, again, the library defaults are scaled to a model's units. But existing operators in the model will remain the same size, in "length units", they were created with. So if the xsize of an operator is 2 before the change, it will be 2 after the change. You've only changed your interpretation label for that 2 value from "meters" to "feet". Under the hood FlexSim only sees "time units". It thinks exponential(0, 10, 0) time units, and nothing else. You, the modeler, are the one who labels that exponential(0, 10) with, "this is in minutes", and you do that when you create a new model. Because of all of this, we discourage changing the model units by inhibiting it in the user interface. You may say, well, that's kind of a stupid way to go. But properly changing a model's units is much harder than you might think. For example, what if you have, in your model, some code somewhere that says something like: Code:
double secondsToWork = exponential(0, 600); double secondsToWait = normal(300, 5); double totalTime = secondsToWork + secondsToWait; senddelayedmessage(current, totalTime, current); Code:
double minutesToWork = exponential(0, 10); double minutesToWait = normal(5, 5); double totalTime = minutesToWork + minutesToWait; senddelayedmessage(current, totalTime, current); Code:
double timeToWork = exponential(minutes(0), minutes(10)); double timeToWait = normal(minutes(5), minutes(5)); double totalTime = timeToWork + timeToWait; senddelayedmessage(current, totalTime, current); So, it is what it is. |
The Following 12 Users Say Thank You to Anthony Johnson For This Useful Post: | ||
Vadim Fooks (10-04-2012) |
#4
|
|||
|
|||
Simulation Clock
Dear Anthony,
my model was initialized seconds, but when building the logic I already set everything in minutes and now I changed the model unit as you said above. Everything works fine, vehicle speeds are set to m/min etc. My only problem remaining is that the simulation clock (date and time) still runs in seconds instead of minutes, hence my time table with weekly work schedule would not work correctly (60 times slower)... any idea how to resolve this (using Flexsim 7)? Thanks a lot, Kat ----- Okay, I forgot to set Multiple to 60!!! Sorry :-) now its fine! Last edited by Katharina Muller; 11-04-2013 at 04:16 AM. Reason: Got it! :-) |
Thread | Thread Starter | Forum | Replies | Last Post |
some question about 5.02 changing | LINWEIXU | Q&A | 0 | 06-03-2010 02:07 AM |
changing shape factor when changing 3d shape | KelvinHo | Q&A | 3 | 09-03-2009 08:24 AM |
All time related values 0,0000001 time units delayed | Patrick Cap | Q&A | 2 | 05-01-2009 01:50 AM |
CONVERTING FLEXSIM TIME UNITS TO DATES | Dan Cremer | Q&A | 1 | 08-11-2008 08:54 AM |
What time units? | Anthony Timmiss | Q&A | 2 | 08-16-2007 10:08 AM |