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 04-05-2011
Stefan Trabut Stefan Trabut is offline
Flexsim User
 
Join Date: Mar 2011
Posts: 29
Downloads: 12
Uploads: 0
Thanks: 34
Thanked 5 Times in 5 Posts
Rep Power: 115
Stefan Trabut is on a distinguished road
Default Dispatcher: Which TaskExecuter did the task?

Hi,

I would like to know which TaskExecuter did a task. In the following model, a TaskSequence is generated in the "use transport" field of a Queue. A dispatcher gets the TaskSequence and passes it to a TaskExecuter. I would like each FlowItem to carry a label saying which TaskExecuter did the task.

Is there a way to know, which TaskExecuter did the task without adding an extra Queue with capacity 1 (and therefore making the second operator wait until the first FlowItem has left the Queue)?

Thanks,
Stefan
Attached Files
File Type: zip Dispatcher_reference.zip (47.1 KB, 145 views)
  #2  
Old 04-05-2011
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

If I understood you right, this should be done by using:

addlabel(item,"CurrentOperator",tonum(current));

in the OnLoad Trigger of all Operators.
__________________
Hemmi
The Following User Says Thank You to Sebastian Hemmann For This Useful Post:
Stefan Trabut (04-05-2011)
  #3  
Old 04-05-2011
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

If I understood you right, this should be done by using:

addlabel(item,"CurrentOperator",tonum(current));

in the OnLoad Trigger of all Operators.
__________________
Hemmi

Last edited by Sebastian Hemmann; 04-05-2011 at 05:39 AM. Reason: Please delete this!!!
  #4  
Old 04-05-2011
Stefan Trabut Stefan Trabut is offline
Flexsim User
 
Join Date: Mar 2011
Posts: 29
Downloads: 12
Uploads: 0
Thanks: 34
Thanked 5 Times in 5 Posts
Rep Power: 115
Stefan Trabut is on a distinguished road
Default OnLoad trigger

Thanks, Hemmi!

Here's the modified example. The whole code is in the OnLoad trigger. Much easier!
Attached Files
File Type: zip Dispatcher_reference02.zip (47.3 KB, 134 views)


Thread Thread Starter Forum Replies Last Post
Dispatch task only on idle dispatcher waiting on a certain node shafizad Q&A 12 02-03-2011 01:56 PM
a question about taskexecuter oliver xie Q&A 1 01-18-2011 03:19 AM
How to transfer a flowitem from a taskexecuter-team to another taskexecuter-team? Frans Zeng Q&A 12 05-20-2010 11:23 PM
arrive was given a task sequence but is not a dispatcher Brent Merryman FlexSim HC: Q&A 3 04-09-2010 08:34 AM
TaskExecuter should unload more then one item...How? TilmanDHL Tips and Tricks 1 01-28-2009 01:54 AM


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.