matlab loadlibrary 没有头文件,Matlab调用Loadlibrary问题
请教各位大俠我使用Matlab从一个Labjack U3数据读取装置,将某固定时间长度的电压数据读至档案中,负责执行工作的m file(Stream.m),有用到另一个m file(ljud_LoadDriver.m)来呼叫装置的驱动,我试着按照之前的帖子改后,在complie后(编译的指令使用mcc -m Stream.m -a ljud_LoadDriver.m),执行Stream.exe 后
请教各位大俠
我使用Matlab从一个Labjack U3数据读取装置,
将某固定时间长度的电压数据读至档案中,
负责执行工作的m file(Stream.m),
有用到另一个m file(ljud_LoadDriver.m)来呼叫装置的驱动,
我试着按照之前的帖子改后,在complie后(编译的指令使用mcc -m Stream.m -a ljud_LoadDriver.m)
,执行Stream.exe 后仍然有问题,
错误讯息为下
Warning: feval on script names will not work, or may work differently,
in a future version of MATLAB. To make your code insensitive to any change
and to suppress this warning message:
- Either change the script to a function.
- Or use eval instead of feval.
The script file in question is ljud_LoadDriver.
> In loadlibrary at 429
In Stream at 56
In labjack2>pushbutton2_Callback at 351
In gui_mainfcn at 96
In labjack2 at 44
??? Error using ==> loadlibrary at 474
Attempt to execute SCRIPT ljud_LoadDriver as a function:
C:\DOCUME~1\Angus\LOCALS~1\Temp\Angus\mcrCache7.10\start_11\start\ljud_LoadDriver.m
Error in ==>loadlibrary at 429
There was an error running C:\Program
Files\MATLAB\R2009a\toolbox\compiler\mcr\matlab\general\loadlibrary.m.
Run loadlibrary from the command line to reproduce the error and fix it.
请问各位大侠,小弟有哪里编程错了,或是有什么方法可以解决此错误,
附上Stream.m及ljud_LoadDriver.m档供高手参照
附注:LabJackUD.h和labjackud.lib皆在 ç:\ Program Files\LabJack\drivers内
抱歉,我是新手,请多多指教,谢谢!!
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)