question

Doris C avatar image
0 Likes"
Doris C asked Doris C commented

Supplying taskexecuter twice

Hi,

I want a control that, at the confluence of two paths, sends 2 taskexecuters from path 1 and 2 taskexecuters from path 2.

What I've done is utilize a wait for event to wait for 2 taskexecutors and then try to move them both at once.

But that doesn't work.

please help me, thanks for your kind.

wait for event.fsm

FlexSim 19.0.0
wait for eventproces flowtaskexecutors
wait-for-event.fsm (66.9 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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Doris C commented

Something like this?

intersection-order-fm.fsm

Tokens are created on the pre-arrival event of the control points in front of the intersection. These tokens then stop the task executers at those control points and push themselves to a list. A different token pulls them off the list in the desired order (by the "Path" label on the token). The pulled token then resumes the travel of the task executers.


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

Doris C avatar image Doris C commented ·

This is what you want your ashes to look like.

Thank you so much. I was wondering if you could elaborate a bit more on the PF you set up?

For example, can you tell us what modifications you made to it that change the way it looks?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Doris C commented ·

I can try. I removed your attempt at building the logic (the travel activities that send the task executers to CP57 and CP62 and the Wait for Event activity).

The lower part of what I added is explained in the picture below.

1692701527985.png

In the upper part, the token simply loops indefinitely and pulls tokens based on their "Path" label in the order (1, 1, 2, 2).

0 Likes 0 ·
1692701527985.png (101.2 KiB)
Doris C avatar image Doris C Felix Möhlmann commented ·

thanks @Felix Möhlmann have nice day

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.