How to create a bus for the scenario reader?

3 Ansichten (letzte 30 Tage)
Tamim Boubou
Tamim Boubou am 17 Sep. 2020
Kommentiert: Fangjun Jiang am 18 Sep. 2020
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.

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 17 Sep. 2020
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 Kommentar
Fangjun Jiang
Fangjun Jiang am 18 Sep. 2020
Follow this link to Bus Editor
https://www.mathworks.com/help/releases/R2020a/simulink/slref/buseditor.html

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Tamim Boubou
Tamim Boubou am 18 Sep. 2020
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?

Community Treasure Hunt

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

Start Hunting!

Translated by