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 01-21-2014
Manoj Kumar Manoj Kumar is offline
Flexsim User
 
Join Date: Jan 2012
Location: India
Posts: 77
Downloads: 71
Uploads: 0
Thanks: 35
Thanked 0 Times in 0 Posts
Rep Power: 106
Manoj Kumar is on a distinguished road
Default 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  
Old 01-22-2014
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

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  
Old 01-23-2014
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

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


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.