question

ana.pc2 avatar image
0 Likes"
ana.pc2 asked ana.pc2 commented

Traffic Light Control with alternative path

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!

FlexSim 20.2.3
flexsim 20.2.3pathnetwork
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

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered ana.pc2 commented

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


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

ana.pc2 avatar image ana.pc2 commented ·

Got it, Thanks!!! :D

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.