question

Axel Z2 avatar image
0 Likes"
Axel Z2 asked Axel Z2 commented

Conditional Port / Wait until condition is true

Hello Community hello @Tanner Poulton @Jörg Vogel,

i have another Problem with my Simulation. When an engine is processed by the processor2 and it is finally finished with processing the engine can only go to queue4 when there is an engine on queue3. So i think i should use an conditional port for the processor and use something like a waituntil satement but it dont know how to do it....

can you help me there ?

best wishes

axel

version1.fsm

FlexSim 19.1.1
conditional portwait until
version1.fsm (47.2 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
0 Likes"
Joerg Vogel answered Axel Z2 commented

Currently there exists nothing as a FlexScript construct like wait until. FlexSim is simply event driven.

You can close the output of Processor 2. If the Queue 3 receives an engine, you can open the output of Processor 2. The event trigger is in Queue 3 OnEntry. If there isn’t a sequence of events, that you can always use, you can set OnEntry of Queue 3 a label for the entering engine, which you check OnProcessfinish of Processor 2. Then you can open the output of Processor 2 otherwise you are going to open the output of the processor when the engine enters the queue.

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

Axel Z2 avatar image Axel Z2 commented ·

Hello Jörg, thank you very much! I post some screenshots in case somebody has the same Question.

best wishes

axel

1 Like 1 ·
c2.png (36.2 KiB)
q3.png (36.0 KiB)

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.