MATLAB and HID Communication

29 Ansichten (letzte 30 Tage)
Arun Sharma
Arun Sharma am 31 Dez. 2011
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

Antworten (2)

Walter Roberson
Walter Roberson am 31 Dez. 2011
Perhaps you need to open an ActiveX / COM object.
  1 Kommentar
Walter Roberson
Walter Roberson am 31 Dez. 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

Melden Sie sich an, um zu kommentieren.


Arun Sharma
Arun Sharma am 31 Dez. 2011
And How can we do this can you explain me...

Tags

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by