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
|
|||
|
|||
Counting # of times machine is waiting on operator
I have been looking for some way to count the number of times a process, queue, or really anything is in a state of waiting due to an operator not being available. Has anyone tackled something like this that could help me out.
I am new to flexsim and not the strongest coder but I am very avid in learning so I am sorry if this is something easily tracked, but I can use any help. Thanks, |
#2
|
||||
|
||||
So you are looking for a way to count, at specific times what objects are not in state waiting?
Or do you looking for a way to find out how long objects are waiting?
__________________
Hemmi |
#3
|
|||
|
|||
If the operator is used for transport, then in the transportdispatcher field (the one beside the "Use Transport" check box) you could insert the following to send a message to the object itself:
Code:
senddelayedmessage(current,0,current); Then in the OnMessage trigger: Code:
if(getstatenum(current) == STATE_WAITING_FOR_TRANSPORT) inc(label(current,"WaitingForTransport"),1); As an alternative to the label, I suggest using a Tracked Variable so you can obtain history, and they integrate well with the Dashboard and Experimenter. If you are using the operator for a setup or process, I would lean towards adding an OnStateChange eventfunction to send the message from there. I have attached a model of this approach. |
The Following 2 Users Say Thank You to Kris Geisberger For This Useful Post: | ||
Marco Bergmann (01-29-2014) |
Thread | Thread Starter | Forum | Replies | Last Post |
Counting Flow Items | Gavin Douglas | Q&A | 1 | 03-07-2013 06:52 PM |
Using probability to indicate machine/operator availbility | David Chan | Q&A | 13 | 02-18-2011 02:03 AM |
State "Waiting for Operator" (2) | Donatus Minio | Q&A | 1 | 02-24-2009 05:19 AM |
State Waiting for Operator | Nico Zahn | Q&A | 6 | 01-15-2009 09:00 AM |
Operator dependent process times | Unregistered | Pre-sales Questions | 7 | 05-23-2008 03:01 PM |