slsf error using Matlab Function block in Simulink

6 views (last 30 days)
I am trying to use the Matlab Function block in Simulink. I'm running Matlab R2013a 32-bit on a 64-bit Windows laptop.
I get the following Simulink error: Error using slsf (line 119) CRL: "Simulation Target IPP BLAS" cannot be found in the registry.
I don't think the error has anything to do with the contents of the Matlab Function block I am running. I get the same error even with a nearly empty Matlab Function block.
I have tried uninstalling Matlab, cleansing the registry of any Matlab references, and reinstalling Matlab. I have also tried running these same Matlab Function blocks on a friend's laptop also running Matlab R2013a and the blocks run fine, even though we couldn't find any reference to a "Simulation Target IPP BLAS" in his registry.
So I am at a loss. Any ideas how to fix this problem?
  9 Comments
Mrudula Athi
Mrudula Athi on 9 Jan 2014
I get this error only when I am trying to used a user defined MATLAB function in my model? Any idea what may be causing this? Did you get any fix from Mathworks?
Damon
Damon on 5 Jun 2014
Sorry to say I never really found out what caused the issue. Tech support couldn’t replicate my problem so it must be an environment-related issue. I did the following things and then the Matlab function block started working again.
• Uninstalled all Matlab versions, deleted all preference files and Matlab file folders and ran a registry repair program. • Installed only Matlab R2013a • Rehash path • Rehash toolbox • Rehash pathreset • Rehash toolboxreset • Rehash toolboxcache
I coded the last 5 commands in a startup m-file that I run at every Matlab startup.
I have no idea if this will work for anyone else.

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown 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!