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
|
|||
|
|||
FIFO in Task executor
Hi Friends,
How to follow FIFO (First In First Out) in Task executor? The problem is I will load a task executor with first input from first source and second input from other source, during unloading the first input has to be unloaded first and then the next. Otherwise how to make two task executor to move in sync so that i can use seperate task executor to load and unload objects. Thanks in Advance. Regards, Manoj. |
#2
|
||||
|
||||
I think you should have a look into Task Sequence Tutorial under help/tutorials.
__________________
Hemmi |
The Following User Says Thank You to Sebastian Hemmann For This Useful Post: | ||
Carsten Seehafer (01-23-2014) |
#3
|
||||
|
||||
Hello Manoj,
you face the problem that the last loaded item is the first that the taskexecuter is unloading. It happens because the tasksequence is not interrupting its last tasksequence. If you manipulate the tasksequences priorities: first tasksequence highest priority, last tasksquence lowest priority, You have done the first step to get the right unloading order. But the current tasksequence is still the one which the taskexecuter will finish first. You have to break to the tasksequence with the highest priority or probably the last in the tasksequencequeue. Therefore you manipulate after loading the last item the current tasksequence. You insert a TASKTYPE_BREAK with the first involved parameter NULL, the second involved parameter with a reference to the tasksequence you wish to unload first and the next parameter to "1" to execute this task even if the taskexecuter is full. Then you set the rank of the last inserted task right before the traveltask to the travel destination. Now the taskexecuter breaks to the tasksequence which he first loaded. After unloading the tasksequence ends and the standard behaviour of the flexsim engine starts working. Flexsim chooses the tasksequence with the highest priority. Jörg |
The Following 2 Users Say Thank You to Jörg Vogel For This Useful Post: | ||
Tom David (01-27-2014) |
Thread | Thread Starter | Forum | Replies | Last Post |
How to interrupt active task and implement another task? | Ilivid zheng | Q&A | 2 | 01-15-2011 02:30 AM |
Queue (standard, LIFO, FIFO) | Tom David | Q&A | 2 | 05-15-2008 10:30 AM |