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 Exchange에서 Introduction 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