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

34 visualizaciones (últimos 30 días)
Cornelius May
Cornelius May el 4 de Nov. de 2024 a las 20:43
Editada: Govind KM el 6 de Nov. de 2024 a las 11:06
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.

Respuesta aceptada

Govind KM
Govind KM el 5 de Nov. de 2024 a las 8:00
Editada: Govind KM el 6 de Nov. de 2024 a las 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!

Más respuestas (0)

Categorías

Más información sobre Simulation and Analysis en Help Center y File Exchange.

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by