Conditional Port / Wait until condition is true

Conditional Port / Wait until condition is true

axel_z2
Not applicable
63 Views
2 Replies
Message 1 of 3

Conditional Port / Wait until condition is true

axel_z2
Not applicable

[ FlexSim 19.1.1 ]

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

0 Likes
Accepted solutions (1)
64 Views
2 Replies
Replies (2)
Message 2 of 3

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

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.

0 Likes
Message 3 of 3

axel_z2
Not applicable

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

21980-c2.png

21981-q3.png

best wishes

axel