Where can I find the library 'sm_suspension_templates_lib'?
6 views (last 30 days)
Show older comments
MATLAB and Simulink Racing Lounge: Vehicle Modeling with Simscape Multibody ( https://www.mathworks.com/matlabcentral/fileexchange/64648-matlab-and-simulink-racing-lounge-vehicle-modeling-with-simscape-multibody ), MATLAB Central File Exchange. Retrieved November 4, 2024.
I'm trying to run the above model. I've updated the model to work with my Matlab version (2024b). I've run into a roadblock with the 'sm_suspension_templates_lib' library being referenced by 3 different blocks and not being found.
According to the documentation I have all the necessary toolboxes and add-ons:
These are the Toolboxes I have:
MATLAB Version 24.2 (R2024b)
Simulink Version 24.2 (R2024b)
Aerospace Blockset Version 24.2 (R2024b)
Aerospace Toolbox Version 24.2 (R2024b)
Simscape Version 24.2 (R2024b)
Simscape Multibody Version 24.2 (R2024b)
What am I missing, where can I find this library?
Thanks in advance for any support.
0 Comments
Accepted Answer
Govind KM
on 5 Nov 2024
Edited: Govind KM
on 6 Nov 2024
Hi Cornelius,
Since MATLAB R2023b, resources related to demos have been shifted to standalone examples, which can be accessed using the OpenExample command. The model included in the File Exchange submission references the sm_suspension_templates_lib library, which has been removed from its original location in R2023b. This leads to the "Cannot find library" error.
An updated version of this submission has been uploaded to File Exchange, which includes a fully parameterized vehicle model with different suspension types. This can be accessed here:
If you wish to use the original submission, a workaround is to run the model in an older version of MATLAB (R2023a or earlier), which can be downloaded by selecting the desired release in the "Select Release" dropdown here.
For another potential workaround, there is a related example on the MathWorks website, which can be accessed using the command:
openExample('sm/VehicleSuspensionTemplatesExample')
The VehicleSuspensionTemplatesLibrary present in this Example directory is similiar to the sm_suspension_templates_lib library. It can be explored to see if the blocks causing errors can reference this library instead.
Hope this is helpful!
0 Comments
More Answers (0)
See Also
Categories
Find more on Simulation and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!