Where can I find the library 'sm_suspen​sion_templ​ates_lib'?

34 次查看(过去 30 天)
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.

采纳的回答

Govind KM
Govind KM 2024-11-5,8:00
编辑:Govind KM 2024-11-6,11:06
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 个)

类别

Help CenterFile Exchange 中查找有关 Simulation and Analysis 的更多信息

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by