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

조회 수: 7 (최근 30일)
Raj
Raj 2024년 11월 14일
답변: Divyam 2024년 12월 11일
vehicle_status_2=dets_1_1_2.get('AttValue', 'VehNo');
  댓글 수: 5
Walter Roberson
Walter Roberson 2024년 11월 14일
I wonder if what you want is AttValue 'VehicleClass' ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Divyam
Divyam 2024년 12월 11일
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

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by