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
|
|||
|
|||
Starting content in the Queue
Hello everyone,
it is possible to set starting content in the queue? For example if I woluld like to start simulate process from setting value of content in queue. I wolud like to write my real values (which I have now in my production line) in queues. It is possible? THANK YOU! |
#2
|
||||
|
||||
Bartosz,
In the OnReset Trigger select the sendmessage pick list option. Set the 1st message parameter to the number of flowitems you want to create and the 2nd message parameter to the rank of the flowitem. You can get the rank by looking in the Flowitem bin. Then set the OnMessage trigger to the create flowitems pick list option. This will create the items in the Queue at time zero. Here is a tutorial on how to do this: There are (maybe) more tutorials in this thread: http://www.flexsim.com/community/for...ead.php?t=1112 Good Luck, Brandon
__________________
thats not normal. Last edited by Brandon Peterson; 09-30-2009 at 04:36 PM. Reason: Added video |
The Following 2 Users Say Thank You to Brandon Peterson For This Useful Post: | ||
Phil BoBo (10-01-2009) |
#3
|
|||
|
|||
Thank You vey much! Work for me, but I have one more question, how to set itemtype in the Queue on starting position because I have 9 others itemtypes and for all of them I have dedicated 9 Queues. So now when I did send massage on the reset in every Queue I got in all 9 Queues the same Itemtype. I hope that You understand me :-). I would like to set dedicated itemtpye to every Queue.
THANK YOU for your helping me :-) Bartosz misiurek |
#4
|
||||
|
||||
Bartosz,
You need to add one line of code to set the item type. Insert the following line in the OnMessage trigger after the insertcopy() command in the for loop: setitemtype(last(current),2); This will set the item type to 2. You can also do it the way, that you use msgparam(3) to set the itemtype. Define it OnReset as msgparam(3) and change the line to: setitemtype(last(current),msgparam(3)); I hope this is what you are looking for. Good success.
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions." |
The Following User Says Thank You to Tom David For This Useful Post: | ||
Brandon Peterson (10-04-2009) |
#5
|
||||
|
||||
Bartosz,
Here is another video that will walk you through how to use the picklist options to do what you are asking about: Good Luck, Brandon
__________________
thats not normal. |
Thread | Thread Starter | Forum | Replies | Last Post |
Pulling from a Queue vs Sorting the Queue | Brandon Peterson | Tips and Tricks | 3 | 03-03-2010 01:27 AM |
Batch/Max Content | Gavin Douglas | Q&A | 4 | 07-09-2008 12:28 AM |
Queue Sorting | Jeff Nordgren | Q&A | 12 | 05-22-2008 03:21 PM |
How to get interval average,max,etc of a queue content ? | qin tian | Q&A | 5 | 02-14-2008 10:11 PM |
Queue stacking | Paul Dowling | Q&A | 2 | 11-27-2007 11:57 PM |