question

亮穎 avatar image
0 Likes"
亮穎 asked Ben Wilson commented

the sink to input, the queue 3 will be reduced by the same amount.

Source1 and source2 are in accordance with the arrival schedule every day. As much as I want the sink to input, the queue 3 will be reduced by the same amount.0304.fsm

FlexSim 19.2.4
flexsim 19.2.4sink label
0304.fsm (30.2 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @亮穎 , was Jörg Vogel's or jason.lightfoot's or 亮穎 's answer helpful? If so, please click the red "Accept" button at the bottom of one of their answers. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

I suggest you can do this on the Queue3 sendtoport and not release items that would take the input above that of the sink. The sink sends a message to the queue on every entry for the queue to then decide if it should release an item.

This way you can still open and close ports to suspend the output if you need to.

0304_jl.fsm


0304-jl.fsm (32.4 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joerg Vogel commented

I would place another sink behind the queue3. The input is closed OnReset event for this sink. Then when your sink receives items, you open the input and you close the input again if the input of both matches.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

亮穎 avatar image 亮穎 commented ·

Hello, may I take a look at your revised file?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel 亮穎 commented ·

I haven’t got a file.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.