Reputation: 21
I have a Model Predictive Controller for a simulated autonomous vehicle in MatLab. I can currently run simulations using this controller, so I know the model is correct and functional.
I am trying to export this model to C++ code using the Embedded Code App. After getting to this step in the Quick Start: Embedded Coder Error
I get this error:
Selected signal 'Detections.Time' in the Bus Selector block 'Model/Detections' is invalid since it refers to a bus element within an array of sub-buses. The path to the array of sub-buses is 'Detections'. Please select the appropriate array element using a Selector block before using the Bus Selector block to access an element within the bus.
I would like to solve this error without manipulating the model. Is this possible? Currently, my only idea is to add a Selector block before the Bus Selector block. Given that this is a legacy project, and that this model was handed to my team, I do not want to manipulate the model in this way.
Some images of the model componentry are included below.
Thanks for any and all assistance!!!
Upvotes: 2
Views: 310