读取tdms文件的问题

2019-07-17 12:42发布

在ni官网下载的matlab TDM Example,直接运行sample文件夹下的m文件遇到错误:
Error using loadlibrary (line 254)
A 'Selected' compiler was not found.  You may need to run
mex -setup.
Error in ReadFile (line 30)
loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path);

运行mex-setup后,出现:
??? Error using ==> calllib
Array must be numeric or logical or a pointer to one.

Error in ==> ReadFile at 43
    [err,dummyVar,filename]=calllib(libname,'DDC_GetFileProperty',file,DDC_FILE_NAME,pfilename,filenamelen+1);

如何解决哇,请大家指点,谢谢了!
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。