Hi Shiwani,
The error message "Cannot find library called 'tllib'" suggests that Simulink is unable to locate the “TargetLink” library(“tllib”), which is required for “TargetLink” blocks to function correctly. Here are a few possible steps you can take to troubleshoot and resolve this issue:
- Verify TargetLink Installation and set Path to TargetLink Library: Ensure that “TargetLink” is properly installed on your system and the path to the “TargetLink library” is included in the MATLAB path. You can add it using the “addpath” function(You can refer to the following page for more information on “addpath”: https://www.mathworks.com/help/matlab/ref/addpath.html).
- Check for Version Compatibility: Ensure that the version of “TargetLink” you have installed is compatible with your version of MATLAB and Simulink.
- Check TargetLink Configuration: Double-check the configuration settings for the “TargetLink” library, making sure the settings are correct and that the tool is pointing to the correct installation directories.
- Rebuild TargetLink Library: You can try rebuilding the “TargetLink” Library from the “TargetLink” manager.
You can refer to the answer below for more information on this issue:
I hope this helps!