question

Vivian F avatar image
0 Likes"
Vivian F asked Vivian F commented

How to remove all items in the queue if downstream processor is breakdown

I need to build a model that items in the queue should be sent to ports based on downstream processor's status. If processor is in running status, then items in the queue will be waiting to be processed. If processor is Breakdown, then all items that are currently in the queue should be removed to a sink node.

I think I should use conditional port for the out flow of the queue, but it doesn't work as I expected.

I am new to the software, can anyone please help? Thanks.

FlexSim 17.2.1
queuebreakdown
breakdown.fsm (20.5 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.

1 Answer

·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Vivian F commented

Place a queue behind your current you as a bypass. Then you close the input of this bypass queue. If the breakdown occurs you simply opens the input of the bypass and the items will take this route by default if you haven't explicitly set output ports in your queue.

· 3
5 |100000

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

Vivian F avatar image Vivian F commented ·

Thanks, Jörg! Is it possible to use only one queue for to realize it?

0 Likes 0 ·
Mischa Spelt avatar image Mischa Spelt Vivian F commented ·

Hi Vivian. Instead of using a bypass queue, you can also connect a sink to your existing queue. In order to clarify Jörg's answer, I have attached breakdownsink.fsm in which the BreakdownSink closes its own input in its On Reset trigger. There is an MTBF/MTTR event that affects the processor, in which I have implemented an On Break Down and On Repair trigger to respectively open and close the inputs of the breakdown sink.

3 Likes 3 ·
breakdownsink.fsm (78.7 KiB)
Vivian F avatar image Vivian F Mischa Spelt commented ·

Hi Mischa, This is exactly what I want to do, thank you very much!

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.