Supplying taskexecuter twice

Supplying taskexecuter twice

doris_c
Not applicable
164 Views
4 Replies
Message 1 of 5

Supplying taskexecuter twice

doris_c
Not applicable

[ FlexSim 19.0.0 ]

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

0 Likes
Accepted solutions (1)
165 Views
4 Replies
Replies (4)
Message 2 of 5

moehlmann_fe
Advocate
Advocate
Accepted solution

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.

0 Likes
Message 3 of 5

doris_c
Not applicable

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
Message 4 of 5

moehlmann_fe
Advocate
Advocate

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
Message 5 of 5

doris_c
Not applicable

thanks @Felix Möhlmann have nice day

0 Likes