How would i retrieve the vehtype from the detector what would be the code for it

7 vues (au cours des 30 derniers jours)
Raj
Raj le 14 Nov 2024
Réponse apportée : Divyam le 11 Déc 2024
vehicle_status_2=dets_1_1_2.get('AttValue', 'VehNo');
  5 commentaires
Walter Roberson
Walter Roberson le 14 Nov 2024
I wonder if what you want is AttValue 'VehicleClass' ?

Connectez-vous pour commenter.

Réponses (1)

Divyam
Divyam le 11 Déc 2024
Hi @Raj,
In the VISSIM manual, I found that the abbreviation used for the name of vehicle type as an attribute/parameter is "VehTypeName." You could try fetching the attribute value for this abbreviation or similar abbreviations ("VehType") that are referred to in the other manuals attached by @Walter Roberson.
vehicle_type = dets_1_1_2.get('AttValue', 'VehTypeName');
vehicle_type = dets_1_1_2.get('AttValue', 'VehType');
To refer to the VISSIM manual, you can check out this link: https://www.dot.ny.gov/main/roundabouts/files/manual_vissim_410.pdf

Catégories

En savoir plus sur MATLAB Support Package for Raspberry Pi Hardware dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by