How would i retrieve the vehtype from the detector what would be the code for it
Show older comments
vehicle_status_2=dets_1_1_2.get('AttValue', 'VehNo');
5 Comments
Walter Roberson
on 14 Nov 2024
This looks like it might be code related to VISSIM; see for example Appendix O: VISSIM COM Interface Program in MATLAB, at https://anthony-claretonwutalobi.com/wp-content/uploads/2022/05/DEVELOPMENT_OF_INTELLIGENT_VEHICLE_PEDES.pdf
Raj
on 14 Nov 2024
Raj
on 14 Nov 2024
Moved: Walter Roberson
on 14 Nov 2024
Walter Roberson
on 14 Nov 2024
There is an introduction to programming PTV Vissim in MATLAB at https://real.mtak.hu/83702/1/VISSIM9_10_COM_Eng.pdf and the 2020 COM programming manual is available at http://pt.csust.edu.cn/meol/common/script/preview/download_preview.jsp?fileid=8524885&resid=1043067&lid=66875&preview=preview
Walter Roberson
on 14 Nov 2024
I wonder if what you want is AttValue 'VehicleClass' ?
Answers (1)
Divyam
on 11 Dec 2024
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
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!