필터 지우기
필터 지우기

MATLAB and HID Communication

조회 수: 22 (최근 30일)
Arun Sharma
Arun Sharma 2011년 12월 31일
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

답변 (2개)

Walter Roberson
Walter Roberson 2011년 12월 31일
Perhaps you need to open an ActiveX / COM object.
  댓글 수: 1
Walter Roberson
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

댓글을 달려면 로그인하십시오.


Arun Sharma
Arun Sharma 2011년 12월 31일
And How can we do this can you explain me...

카테고리

Help CenterFile Exchange에서 ActiveX에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by