How do I restore Speedgoat I/O Blockset after resetting my MATLAB path?

I had to run the command 'restoredefaultpath' because of issues with my MATLAB® search path. However, it appears that this uninstalled the Speedgoat® I/O Blockset (Speedgoat libraries), and I see errors such as the following when I try to build a Simulink Real-Time™ model:
Unable to resolve the name sg.model.build.Hooks.entry.
System target file 'speedgoat.tlc' cannot be found.
Failed to load library 'speedgoatlib_xyz' referenced by '<blockPath>'.
Unrecognized function or variable 'speedgoatroot'.

 Réponse acceptée

You can restore the Speedgoat I/O Blockset installation by doing the following:
1) Navigate to the Speedgoat Blockset installation directory in MATLAB. The path will depend on the MATLAB release and Speedgoat library version you are using:
% modify path according to MATLAB release and Speedgoat library version
>> cd C:\ProgramData\Speedgoat\speedgoatlib\R20XXy\a.b.c\
2) Restore the Speedgoat I/O Blockset installation and save the path by running:
>> addpath(pwd);
>> sg_path(1)
3) Test the Speedgoat I/O Blockset setup by running:
>> speedgoat.version
If this command fails, please reinstall the Speedgoat I/O Blockset.
If this command succeeds, to save your path permanently for MATLAB to use it in future sessions, run:
>> savepath
NOTE: For other Speedgoat tools, such as HDL Coder Integration Package or Motion Control HDL I/O Blockset, there is no built-in function for restoring the existing installation. Please reinstall these tools.
Contact Speedgoat support for further questions on this:

Plus de réponses (0)

Catégories

En savoir plus sur Generated Code Compilation dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by