フィルターのクリア

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 Center および File ExchangeActiveX についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by