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
|
|||
|
|||
State report based on the operational time
Hi Guys,
I have a model with a time table, and I want to generate the state report without the « schedule down state »and based only on the operational time. If I take off the “schedule down” from the States to report in Report and statistics/State report, is there a way to generate the state report with the processing and Idle state as percentages of the operational time only ? Thanks for ur help. Simon |
#2
|
|||
|
|||
and if we consider that I adapted the state report manually on Excel, how can I display the recorder state graph of an object without the "schedule down" percentage ?
Simon |
#3
|
|||
|
|||
Hi Simon,
You need to calculate the percentage your self. (What I know). You can use both summary report and state report to do the calculation, if you use state report be sure you are not generating the report as percentage. Have "Display values as percentage" unchecked, then the state reports will show the the time for each state instead of percentage. Now you can do your own calculation and only include what you want in your calculations. Lars-Olof |
The Following User Says Thank You to Lars-Olof Leven For This Useful Post: | ||
Simon Farsah (09-23-2008) |
#4
|
||||
|
||||
Simon,
To make a graph that shows you only the %'s that you want you have to have the underlying data only contain that information. So if you have the data correct in excel you can use the excel graphs to show you the graph that you want. If you want to do it in Flexsim, the easiest solution (as far as I can think off at this moment): If you go to explore tree of an object and you go to stats/state/state_profile you will find all the states that that object can have and every state that has a value > 0 will be displayed in the stategraph (the values are the number of seconds that an object has been in that state) What you can do is to get the values of the schedule down state and ad those to the state that you want it to get (eg idle) You could do this for instance in the "On Run Stop" of the model triggers. example code: treenode Object= node( "/ObjectName", model()); treenode IdleNode = node( "/idle", state_profile(Object)); treenode ScheduleDownNode = node( "/scheduled_down", state_profile(Object)); setnodenum( IdleNode, getnodenum(IdleNode) + getnodenum(ScheduleDownNode)); setnodenum( ScheduleDownNode, 0); Other solutions could be to get the state data and put it in a table or something and get the data from there by either creating your own statepie chart or using the userdefined options of the recorder, but I think this is more complex than the first option. Steven |
The Following 5 Users Say Thank You to Steven Hamoen For This Useful Post: | ||
Tom David (09-23-2008) |
#6
|
||||
|
||||
Hi,
where is the keyword state_profile documented? Are there other keywords defined? I looked through the documentation but could not find anything.
__________________
kind regards Nico. |
#7
|
||||
|
||||
Nico,
Most of the nodes in the tree of an object can be directly reached via the so called attributes. If you look at the help, you find attribute hints. All these words give you pointers to nodes in the tree. So for instance "getnodenum( spatialx(current))" will return the x position of current. Steven |
The Following User Says Thank You to Steven Hamoen For This Useful Post: | ||
Nico Zahn (09-24-2008) |
#8
|
|||
|
|||
State recorder
Hi,
I found the post http://www.flexsim.com/community/for...ight=bar+chart by Kris Geisberger very useful (a homemade state recorder). I simply subtracted the state SCHEDULED_DOWN from the total time to make a recorder not taking the state SCHEDULED_DOWN into consideration (not sure this solution is very "clean", but it works). Last edited by Stefan Trabut; 05-20-2011 at 06:51 AM. |
The Following User Says Thank You to Stefan Trabut For This Useful Post: | ||
Sebastian Schreiber (05-25-2011) |
Thread | Thread Starter | Forum | Replies | Last Post |
Suggestions on Experimenter and Report | AlanZhang | Gripes and Goodies | 6 | 11-09-2011 02:32 AM |
Image Swap Based on Position Logic | William Clausen | Q&A | 8 | 08-06-2008 11:42 AM |
Make sure you stop model with the stop button before collecting state based statistics | Paul Dowling | Tips and Tricks | 2 | 06-10-2008 08:10 AM |
Object order in the summary report | AlanZhang | Q&A | 4 | 10-16-2007 05:50 PM |
How to report setup cost? | jbruxelle | Q&A | 1 | 09-05-2007 12:07 PM |