MATLAB Answers

Simulink error in model with Vehicle Dynamics Blockset

7 views (last 30 days)
Jakub Pawlak
Jakub Pawlak on 14 Jul 2018
Answered: Ryan Chladny on 18 Dec 2018
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.

  0 Comments

Sign in to comment.

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

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!