MATLAB and HID Communication
30 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (2)
Walter Roberson
el 31 de Dic. de 2011
Perhaps you need to open an ActiveX / COM object.
1 comentario
Walter Roberson
el 31 de Dic. de 2011
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
Ver también
Categorías
Más información sobre ActiveX en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!