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 > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 03-26-2013
Joseph Mueller Joseph Mueller is offline
Flexsim User
 
Join Date: Feb 2013
Posts: 7
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Joseph Mueller is on a distinguished road
Default 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  
Old 03-27-2013
Sebastian Hemmann's Avatar
Sebastian Hemmann Sebastian Hemmann is offline
Flexsim User
 
Join Date: Sep 2009
Location: Braunschweig (Germany)
Posts: 439
Downloads: 52
Uploads: 0
Thanks: 472
Thanked 217 Times in 154 Posts
Rep Power: 319
Sebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to behold
Default

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  
Old 03-27-2013
Kris Geisberger Kris Geisberger is offline
Flexsim Canada, Forum Moderator
 
Join Date: Aug 2007
Location: Canada
Posts: 209
Downloads: 54
Uploads: 1
Thanks: 99
Thanked 389 Times in 133 Posts
Rep Power: 451
Kris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud of
Default

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);
(you might want to use a very small value instead of 0)

Then in the OnMessage trigger:

Code:
if(getstatenum(current) == STATE_WAITING_FOR_TRANSPORT)
	inc(label(current,"WaitingForTransport"),1);
Be sure to add a number label on the object called "WaitingForTransport" (or whatever you want to call your label)

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.
Attached Files
File Type: fsm count waiting occurances - OnStateChange.fsm (120.7 KB, 79 views)
The Following 2 Users Say Thank You to Kris Geisberger For This Useful Post:
Marco Bergmann (01-29-2014)
  #4  
Old 04-09-2013
Joseph Mueller Joseph Mueller is offline
Flexsim User
 
Join Date: Feb 2013
Posts: 7
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Joseph Mueller is on a distinguished road
Default

Thanks for the help everyone. The help is much appreciated.
  #5  
Old 01-29-2014
Marco Bergmann Marco Bergmann is offline
Flexsim User
 
Join Date: Jun 2013
Posts: 20
Downloads: 2
Uploads: 0
Thanks: 4
Thanked 2 Times in 2 Posts
Rep Power: 86
Marco Bergmann is on a distinguished road
Default

I have a simple questions:
-How can i add "onStateChange" eventfunction to my object?
-Why this is not an event which i can use as a trigger?


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


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.