loadlibrary: Index exceeds matrix dimensions
조회 수: 5 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
Walter Roberson
2015년 9월 4일
You need to install a compiler. And if you are using Windows 10 you might not be able to get one working.
댓글 수: 4
Sahar Arabzadeh
2016년 4월 13일
Hello
I am working with windows 8 and have the same problem. What should I do?
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개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!