How to create a bus for the scenario reader?

조회 수: 4 (최근 30일)
Tamim Boubou
Tamim Boubou 2020년 9월 17일
댓글: Fangjun Jiang 2020년 9월 18일
I have the following:
P2HEV model, that I'm trying to simulate using the autonomous driving toolbox, using some bulit-in MatLab examples, I'm able to extract the relevant info from the egoVehicle, and form a struct as an input to the scenario reader. but I'm getting errors related to bus namings
In port settings of the scenario reader, I'm setting the source as Property, and the name as "BusActor"
similarly, in the data of the MatLab function, the output port "egoActor" is set to bus<BusActor>
There is a probem in creating the bus, and I don't know how to create one manually for this task, any help is appreciated.

채택된 답변

Fangjun Jiang
Fangjun Jiang 2020년 9월 17일
To resolve the error, open the MATLAB Function, click "Edit Data",
Select "Bus: <object name>" from the dropdown list for "type" to set the data type. Bus object "egoActor" must be defined.
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2020년 9월 18일
Follow this link to Bus Editor
https://www.mathworks.com/help/releases/R2020a/simulink/slref/buseditor.html

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

추가 답변 (1개)

Tamim Boubou
Tamim Boubou 2020년 9월 18일
I've already set that option, but the problem is I don't know how to define a costume bus like that in Simulink, and couldn't find suitable example to follow, could you guide me?

카테고리

Help CenterFile Exchange에서 Aerospace Applications에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by