How can I get the state of the detector from the COM interface of VISSIM?
Detectors, or as Vissim calls it, Data Collection Measurements can be fetched from COM using the command:
Detector = Vissim.Net.DataCollectionMeasurements.ItemByKey(detector ID)
Then you can check for the required values, if equipped using this command:
Speed = Detector.AttValue('Speed(Current,Avg,All)')
This will retrieve the current average speed for all the lanes.