Simulink error in model with Vehicle Dynamics Blockset

4 views (last 30 days)
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.

Accepted Answer

Ryan Chladny
Ryan Chladny on 18 Dec 2018
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

More Answers (0)

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!