loadlibrary: Index exceeds matrix dimensions

I am trying to read TDMS (National Instrument data format) files from Matlab. I found a Matlab example provided by NI for reading and writing TDMS files. It consists of an extract of the TDM C DLL (library containing the necessary functions for reading and writing TDMS files in C) and an adapted C-header file (nilibddc_m.h) to be used in conjunction with the Matlab software.
In the 'Read' example the library is loaded thanks to 'loadlibrary' function. When I run the 'Read' program, I get the following error message:
====
Index exceeds matrix dimensions.
Error in loadlibrary>getLoadlibraryCompilerConfiguration (line 527)
Error in loadlibrary (line 263)
Error in ReadTDMS (line 34)
loadlibrary(DLL_Path,H_Path);
====
Any idea of what the source of the issue is? Thanks
Francois

 採用された回答

Walter Roberson
Walter Roberson 2015 年 9 月 4 日

0 投票

You need to install a compiler. And if you are using Windows 10 you might not be able to get one working.

4 件のコメント

Francois Jeanneret
Francois Jeanneret 2015 年 9 月 4 日
I am using Windows 7 and I got Microsoft Visual C++ 2005 redistributable (as well as 2008, 2010, 2012, 2013). I also installed Perl on my computer as, apparently, it must be available to use 'loadlibrary'.
Walter Roberson
Walter Roberson 2015 年 9 月 5 日
A redistributable is not a compiler. You need a compiler appropriate for your operating system. SDK 7.1 was supported for a number of releases, but you need to check the table for your particular MATLAB Release and according to whether you are using 32 bit or 64 bit MATLAB. See http://www.mathworks.com/support/sysreq/previous_releases.html
Sahar Arabzadeh
Sahar Arabzadeh 2016 年 4 月 13 日
Hello
I am working with windows 8 and have the same problem. What should I do?
Walter Roberson
Walter Roberson 2016 年 4 月 14 日
Sahar Arabzadeh, look at that same link http://www.mathworks.com/support/sysreq/previous_releases.html to see which compilers are needed for your MATLAB release.
If SDK 7.1 is one of the ones supported, then on Windows 8 you will probably need to uninstall .NET 4.5 and then install .NET 4.0 and then reinstall .NET 4.5

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeTroubleshooting in MATLAB Compiler SDK についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by