Simulink error in model with Vehicle Dynamics Blockset

4 次查看(过去 30 天)
Hello Friends! I am new to Simulink and need some pointers on how to handle an error I'm getting when trying to use the 3DOF vehicle model from the Vehicle Dynamics Blockset. I get the following errors when trying to run the sim:
Invalid dimensions specified for input port U of 'planar_model/Vehicle Body 3DOF Dual Track/Signal Routing/Signal Routing Dual/state2bus/Selector1'. The dimensions indicate that the width of dimension 1 of the input is 4 even though the parameter 'Indices' indicates that the width of dimension 1 of the input is at least 6 Component:Simulink | Category:Model error Error in port widths or dimensions. Output port 1 of 'planar_model/Vehicle Body 3DOF Dual Track/Signal Routing/Signal Routing Dual/state2bus/y' is a one dimensional vector with 4 elements. Component:Simulink | Category:Model error
I'm very grateful for your help. I have attached the model files in this post.

采纳的回答

Ryan Chladny
Ryan Chladny 2018-12-18
Hi Jakub,
I was able to reproduce the issue in 18a Update 5 but could resolve it by taking the local individual wheel speeds from the vehicle Info Bus (rather than using the vehicle CG velocity). I'm not entirely certain of the root cause but it might be good to bring it up with our Technical Support team next time so we can address it more quickly and thoroughly.
Good luck and best regards,
Ryan Chladny

更多回答(0 个)

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by