Initial Hardware Communication Via USB

Hi, I'm hoping to control a motor with MATLAB via USB. The manufacturer has provided a DLL but I'm really not sure where to go from there. Any help would be appreciated, I'm banging my head on this one.
Paul

 採用された回答

Walter Roberson
Walter Roberson 2013 年 9 月 25 日

1 投票

You probably need to loadlibrary(). Anything beyond that is going to depend upon the application interface that the manufacturer provided, which you would need documentation for.

3 件のコメント

Paul
Paul 2013 年 9 月 26 日
The manufacturer got back to me this morning and indeed, loadlibrary() is the very first step.
While I've got your attention: Initial communication is working in 32bit, however in 64bit, loadlibrary() returns an error. The error is below. Please note that I have a separate DLL for x64.
Any ideas? I did install a compiler of some sort I'm pretty sure
-------------------------------------
Error using loadlibrary (line 254)
Perl file erred finding compiler location with following message:
Can't locate C:\Program Files EDIT\MATLAB\R2013a 64bit\bin\win64\mexopts\\lccopts.stp in
@INC (@INC contains: C:/Program Files EDIT/MATLAB/R2013a 64bit/sys/perl/win32/site/lib
C:/Program Files EDIT/MATLAB/R2013a 64bit/sys/perl/win32/lib .
C:\Program Files EDIT\MATLAB\R2013a 64bit/bin) at C:\Program Files EDIT\MATLAB\R2013a 64bit/bin/mexsetup.pm line 456.
Paul
Paul 2013 年 9 月 26 日
I re-installed MS compiler, works.
Md. Liton
Md. Liton 2014 年 8 月 13 日
Hi, I am facing the same problem. How can I get MS compiler? Please help me.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2013 年 9 月 25 日

コメント済み:

2014 年 8 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by