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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
Do you have a model that runs?

We encourage students to research and try and solve the problems themselves and if they get stuck offer guidance.

Here's the documentation for the Traffic Control.

Here's a previous post and example.

1 Like 1 ·
issiaka avatar image issiaka Jason Lightfoot ♦ commented ·

Sorry, here is the working model: trafficlightlogic.fsm

0 Likes 0 ·
Julie Weller avatar image Julie Weller commented ·

Hi @issiaka, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

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.

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.