Hi everyone,

I need to measure the density and average speed of vehicles for a certain link in my road network. I am using VISSIM 10 and COM interface with Python. The following piece of code works for VISSIM 5 and now I am trying to find an alternative that works for VISSIM 10.

density = link.GetSegmentResult("DENSITY", 0, 0, 1, 0)

speed = link.GetSegmentResult("SPEED", 0, 0, 1, 0)

As I check the COM library, I couldn't find "density" and "speed" attributes associated with a link, so I am confused on how to get them.

Thanks in advance for any help or suggestions.

More Tianchen Yuan's questions See All
Similar questions and discussions