Traffic Light Control with alternative path

Traffic Light Control with alternative path

ana_pc2
Not applicable
25 Views
2 Replies
Message 1 of 3

Traffic Light Control with alternative path

ana_pc2
Not applicable

[ FlexSim 20.2.3 ]

Hey everybody!

How are you?? Just following this topic: https://answers.flexsim.com/questions/40024/how-can-i-create-a-traffic-light-logic.html and the answer of @Phil BoBo, I create a similar example, but in my case, I am trying to do a traffic light in that path of the network with an additional path. Therefore when it is red, they can go through the other new path.

I hope it makes sense what I trying to say. I am attaching an example model. Right now they get stuck waiting for the light to turn green, so I am wondering how to make them choose the other path if the red light is on.

If there is any other way to create what I am trying to accomplish, let me know too! 🙂

Thanks for the help!

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

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

If you return a number from the arrivaltrigger of the network node it will send the traveler down that 'edge' or output connection. In your model the diversion nodes are all on edge 3. The trigger code I added tests to see if the traffic controller status is 1 and if it is it returns 3.

custom-traffic-control-new_jl.fsm

Message 3 of 3

ana_pc2
Not applicable

Got it, Thanks!!! 😄

0 Likes