MATLAB and HID Communication
31 次查看(过去 30 天)
显示 更早的评论
Can we communicate with usb port having hid devices with matlab..
i want to use hid.dll present in system32 folder??
i have read a function loadlibrary in matlab
and tried to load the dll like this loadlibrary('hid.dll','hid.h')
but nothing prosperous happens...
i have defined some function in hid.h
can anyone tell me how to do usb hid communication using matlab
0 个评论
回答(2 个)
Walter Roberson
2011-12-31
Perhaps you need to open an ActiveX / COM object.
1 个评论
Walter Roberson
2011-12-31
http://www.mathworks.com/help/techdoc/ref/actxcontrol.html
However, I found discussions that indicate that hid.dll is not an activex dll and instead needs to be called through MS Windows calls such as from C. Some information about how to do that can be found as listed below.
I also find information that suggests that you probably do not need to call those routines unless you are building your own hardware. That could potentially be an overstatement, though, in that the truth could perhaps be that you would need to call it if you are attempting to interface to hardware that is otherwise unsupported.
Note: MATLAB has very little direct USB support. As best I recall, it has one Real Time Workshop target, plus some upcoming limited Data Acquisition support in 2012A.
http://www.mathworks.com/matlabcentral/newsreader/view_thread/296748
http://www.lvr.com/hidpage.htm
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 ActiveX 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!