question

issiaka avatar image
0 Likes"
issiaka asked Julie Weller commented

How to build a traffic light logic ?

I am trying to build a traffic light logic at the intersection of my model.

However, everytime the traffic controller goes green, only one vehicle is allowed to go.

I need some help to fix this so every following vehicle can also leave until the Traffic Control1 goes red.

Attached is the model: network-nodes-and-trafic-control-update.fsm

FlexSim 23.1.1
traffic light logic
· 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.

1 Answer

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot edited

You should use the entryRequest trigger to return the correct value for the color state to "allow" entry or "queue". Add that either directly or in a process flow with a return value override:

1684933422802.png

I would also increase the max travelers from zero - that just seems odd.


1684933422802.png (7.6 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.