question

Carlos SR avatar image
0 Likes"
Carlos SR asked Carlos SR commented

delay on message open close ports

i want to close the input on the queue instead of release item and open it when the queue after that

delay.fsm

FlexSim 20.1.3
flexsim 20.1.3condition
delay.fsm (16.0 KiB)
· 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.

Matt Long avatar image Matt Long commented ·

I'm not sure I'm quite following what you want to do. Are you wanting to hold specific items in the queue and later release them to Queue2? Or do you want items at certain intervals to enter Queue2?

0 Likes 0 ·
Carlos SR avatar image Carlos SR commented ·

@matt.long,

i want the delay of the 90 seconds if it happens to input close the port and then when that item who had stayed 90 seconds on exit input open the port

0 Likes 0 ·
tannerp avatar image
0 Likes"
tannerp answered Carlos SR commented

@carlos.sr,

You could accomplish this with a Processor that has a Process Time of 90 seconds and a Max Content of 1. Or you could accomplish this with Process Flow. But, I understand that you're using a queue, so I created an example model that uses a queue with triggers. The On Entry trigger closes the input/output ports and then sends a delayed message. After 90 seconds of delay, the message is received and the On Message trigger is fired, which opens the input/output again.

I hope this helps. Let me know if you have questions.

staytime 90 seconds.fsm


input-close.png (11.9 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.

Carlos SR avatar image Carlos SR commented ·

now the only item stay 90 seconds but i want to close the port when the staytime reaches that value and open it when that item exit the queue



0 Likes 0 ·
Carlos SR avatar image
0 Likes"
Carlos SR answered
now the only item stay 90 seconds but i want to close the port when the staytime reaches that value and open it when that item exit the queue
5 |100000

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