Attach mixed data types Buses to MATLAB Function Blocks
显示 更早的评论
Hello!
I've check how to attached buses to MATLAB Function Blocks in Simulink model from here: https://nl.mathworks.com/help/simulink/ug/attach-bus-signals-to-matlab-function-blocks.html
But in the example, all busses were created in a different manner than in my initial model.
To illistrate the problem, I've created the model (in real model I have much more elements)

I've tried to do the same, but got an error:
Input port cannot accept mixed data types. 'Input Port 1' of 'untitled/MATLAB Function' expects a signal with unique data type. However, it is driven by a signal with elements of differing data types.
Component:Simulink | Category:Model error
My question is: how can I send mixed data type buses to MATLAB Function blocks without redefining all existing bus structures?
Please find the example model attached.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!