question

Pablo Herrero avatar image
0 Likes"
Pablo Herrero asked Pablo Herrero commented

Run subflow sequentially

Hi, I am wondering if it's possible to run a subflow sequentially:

I have a model with 26 photoeyes where the OnBlock trigger launches a subflow but of the subflow is being runned 26 times at the same time.

So what I want is the subflow to be called by one photoeye(the first one to be blocked, even though all they get block at the same instant) and until this photoeye does not finish the subflow, all the others can not run it. Is there's a way to do this?
Maybe is something tricky but so far the the subflow does what I need but should not be run at the same time by all the 26 photoeyes.

Thank you very much in advance.

FlexSim 17.0.2
process flow
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

Regan Blackett avatar image
0 Likes"
Regan Blackett answered Pablo Herrero commented

You should be able accomplish this by setting up a Zone inside your subflow with a Max Content of 1. Is your Subflow inside of an instanced Subflow process flow window? If so you would also need to set the Zone to be Global, rather than Local.

· 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.

Pablo Herrero avatar image Pablo Herrero commented ·

Thank you for your response, it really helped me!

@regan.blackett

0 Likes 0 ·