Why is my Matlab utility not recognizing Windows SDK 7.1?

Hello,
I am using a Matlab utility, called NSMatlabUtility that should be able to load my spm-data from Nanoscope Software. I use a Matlab test version R2015a. Even after I installed the Windows SDK 7.1, Microsoft Visual C++ 2010 and other components (following the instructions given e.g. at http://www.mathworks.com/matlabcentral/answers/101105-how-do-i-install-microsoft-windows-sdk-7-1) I get this error:
Error using NSMatlabUtilities/Open (line 36)
Unable to load DataSourceDll.dll. Please install Microsoft Windows SDK 7.1 from
http://www.microsoft.com/en-us/download/details.aspx?id=8279
when I do the "mex -setup", Matlabs tells me
MEX configured to use 'Microsoft Windows SDK 7.1 (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the
new API. You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
and also for "mex -setup cpp"
MEX configured to use 'Microsoft Windows SDK 7.1 (C++)' for C++ language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the
new API. You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
So to me it looks like Matlab is recognizing the SDK, but somehow the Utility not.
Can it be, that the test version is missing some features?
Is it important at which location the SDK is installed?
What else can be wrong?
Best regards
Robin

Answers (1)

I just successfully set up everything that allows Matlab 2017b to make use of NSMatlabUtility(Nanoscope Analysis1.5) to load SPM data on Windows 10.
At first, I encounter the same error message.
Error using NSMatlabUtilities/Open (line 36)
Unable to load DataSourceDll.dll. Please install Microsoft Windows SDK 7.1 from
http://www.microsoft.com/en-us/download/details.aspx?id=8279
However, the problem is solved by installing SDK 7.1 on Windows 10. To properly install SDK 7.1 on Windows 10 isn't intuitive. Follow the procedure in this link carefully
Hope this helps.

Categories

Asked:

on 1 Jun 2015

Answered:

on 12 Apr 2018

Community Treasure Hunt

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

Start Hunting!