question

Lion avatar image
0 Likes"
Lion asked Kavika F answered

How to record waiting time each truck in traffic control for experimenter?

I using "travel" can to recode averange staytime and averange content.

1703701572603.png

But. when i running Experimenter. then saw the result :
Green time = 0 and Red time = 0 and **** Avg. Staytime and Content = 1260

1703701791846.png

Constaint is not correct record staytime and content !!!!!

Sinario 2 : time of Green = 999 & Red = 0 & Staytime and Content = 0

1703701928129.pngHow to do that ???

This is my fine X2.fsm

FlexSim 23.2.3
performance measurestraffic controlstaytimeexperimetercondition
1703701572603.png (315.6 KiB)
1703701791846.png (274.7 KiB)
1703701928129.png (311.3 KiB)
x2.fsm (132.8 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.

1 Answer

Kavika F avatar image
0 Likes"
Kavika F answered

Hey @Lion, I actually think with the way you've setup your Process Flow, when the Green and Red Delays are both 0, the "Variable S1" is set to "1" for the majority of the time. The Trucks seem to generally need a value of "0" to pass, so of course they'll accumulate in front of S2.

The reason you're always going to get an increasing amount of content at the "Travel S1" activity is because you're spawning trucks faster than they can drive away. When you spawn a bunch on top of each other, they'll continue accumulating. The Network Nodes you're using can only have 1 truck on that road at a time because you have it set to "Non-passing" (the yellow arrow).

1704322901694.png

If you'd like to see 0 Avg.Staytime and 0 Avg.Content at S1, then you'll have to either (1) spawn trucks at a slower rate or (2) speed the trucks up so they get through the light faster. There are probably other ways, but those are the two that come to mind right now.


1704322901694.png (3.4 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.