Inquiry of the error of output port data type which can't be fixed

22 visualizaciones (últimos 30 días)
Edward Cheng
Edward Cheng el 15 de Sept. de 2020
Comentada: Edward Cheng el 21 de Sept. de 2020
Hello everyone,
I faced one error "Unable to register data type 'BusMultiObjectTracker1' for 'TrialRef/Tracks' due to the following error: The number of elements must be greater than zero for this data type.",which I cann't figure it out. I don't get it.
I've spent many many days on my model and it's not still working.
Please take a look at this issue if you are familiar with it.
The layout is like below:
Any help is much appreicated!
Regards,
Edward

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 15 de Sept. de 2020
'BusMultiObjectTracker1' is likely a Simulink.Bus object. Check it in base workspace or your Simulink Data Dictionary. The number 2 Outport block "Tracks" is specified to have that bus. Now, it seems that the actual signal connected to that Outport block does not have any bus element.
  3 comentarios
Fangjun Jiang
Fangjun Jiang el 17 de Sept. de 2020
Use BusCreator and BusSelector block to interface between Bus and signal elements
Change the data type of the Outport block to change from "Bus: <object name>" to any other data type.
Edward Cheng
Edward Cheng el 21 de Sept. de 2020
Hi Fangiun,
I really appreciate your assistance. I try to make my model run with you suggestions and I'm building this for my master project. I'm wondering if it's possible to send you my model and please take a look at it when you are available.
Thank you so much!
Regards,
Edward

Iniciar sesión para comentar.

Categorías

Más información sobre Interactive Model Editing en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by