Hi,
I have a model with 2 servers, 2 queues and 4 sinks:
In server 1:
7% of input products label "No.1" others "No.2"
In server 2:
6% of input products label "No.3" others "No.4"
As a result, every output product in server 2 includes two labels (defined label in server 1 and defined label in server 2)
I want to:
1. Send products with both labels "No. 1" and "No.3" to the first sink
2. Send products with both labels "No. 1" and "No.4" to the second sink
3. Send products with both labels "No. 2" and "No.3" to the third sink
4. Send products with both labels "No. 2" and "No.4" to the fourth sink
Summary of my model's coding:
in Server 2:
1.Send to: If(Label([type],first(c))=and(1,3),1,if(Label([type],first(c))=and(1,4),2,if(Label([type],first(c))=and(2,3),3,4)))
2.Trigger on entry: Label([type],i):=Bernoulli(6,3,4)
IN Server 1:
Trigger on entry: Label([type],i):=Bernoulli(7,1,2)
Unfortunately my model's coding does not work, Please help me. The ED file is also attached.
Thanks
Send to multiple sink
Send to multiple sink
- Attachments
-
- problem.mod
- (18.54 KiB) Downloaded 296 times
- HarryBunnik
- Posts: 362
- Joined: Monday 07 February, 2011 - 11:22
Re: Send to multiple sink
Ha Bsk,
I think you can get some inspiration how to handle something like that in the threat:
viewtopic.php?f=5&t=522
If that doesn't help, let us know. Then we can look a bit deeper into it.
Regards,
Harry
I think you can get some inspiration how to handle something like that in the threat:
viewtopic.php?f=5&t=522
If that doesn't help, let us know. Then we can look a bit deeper into it.
Regards,
Harry
Re: Send to multiple sink
hi harry
Thank you very much
Thank you very much