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
|
|||
|
|||
simple question about "Separator"
I have two kinds of itemtype, after separator's process, the item will split up into two parts.
my question is : if the separator get itemtype == 1, it will enter Queue1 and Queue2. if the separator get itemtype == 2, it will enter Queue1 and Queue3 how can I do to modify my code? thanks in advance. Vic |
#2
|
||||
|
||||
Hi Vic,
I think the easiest way would be to use the default seperator flow function. Therefore you have to copy and pack the items in your entering item that goes into the separator. Maybe you can use insertcopy(..) in the OnExit-trigger in the previous object to achieve this. In the seperator default flow-code the first item exists on port 1 everytime, for all other you can surely find a simple expression to solve your quest in the else statement. May it helps. Jörg |
#4
|
||||
|
||||
Vic,
Why are you using the combiner object? You don't have anything to separate. What are you trying to do? Maybe a different object like a processor, maybe, would be a better choice? It would be easier in the flow logic to use a different object. That is why I ask, why a combiner?
__________________
Jeff Flexsim Support |
#5
|
||||
|
||||
Vic,
Would something like the attached model (using a processor) work for your application? Nore: The attached model was created in version 4.5
__________________
Jeff Flexsim Support |
#6
|
|||
|
|||
thanks Jeff,
I think maybe you don't understand my question clearly, I mean after the separator's process, there will two items output, if the separator get itemtype==1 , one item enter Queue1,the other enter Queue2 ; if get itemtype==2 , one item enter Queue1,the other enter Queue3. but your model seems like after the Queue1 is full, the item just begin to enter Queue2 or Queue3. |
Thread | Thread Starter | Forum | Replies | Last Post |
The "Simple Question" Thread | Xavier Jackson | Q&A | 202 | 08-10-2009 09:44 AM |
a question about the command "getitemtype" | Vic Li | Q&A | 2 | 10-04-2008 11:47 PM |
I have a "priority" question | Li Chin | Q&A | 6 | 09-15-2008 08:11 AM |
Is it possible one object comprised of the function of "combiner" and "separetor"? | Vic Li | Q&A | 1 | 08-19-2008 04:41 AM |
about "no select" and "show parameter window from side bar" | qin tian | Gripes and Goodies | 3 | 03-21-2008 08:10 AM |