Inquiry of the error of output port data type which can't be fixed
29 次查看(过去 30 天)
显示 更早的评论
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/360727/image.png)
Any help is much appreicated!
Regards,
Edward
0 个评论
回答(1 个)
Fangjun Jiang
2020-9-15
'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 个评论
Fangjun Jiang
2020-9-17
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Model Editing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!