question

Edgar A avatar image
0 Likes"
Edgar A asked Phil BoBo commented

How can I create a traffic light logic?

I'm trying to make a simple traffic intersection control by traffic litght. But I dont know how to control the times. I think it will be necessary use Time Table, im trying but not successful.

FlexSim 16.1.2
traffic light
· 4
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

Phil BoBo avatar image
3 Likes"
Phil BoBo answered Phil BoBo commented

You can customize the Traffic Control object's logic by writing code in its OnEntryRequest trigger and using the trafficcontrolinfo() command:

Thus, you could write custom logic that keeps track of which lanes are open on labels and change those values based on time like a traffic light.


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