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

 Réponse acceptée

Walter Roberson
Walter Roberson le 25 Sep 2013

1 vote

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 commentaires

Paul
Paul le 26 Sep 2013
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 le 26 Sep 2013
I re-installed MS compiler, works.
Md. Liton
Md. Liton le 13 Août 2014
Hi, I am facing the same problem. How can I get MS compiler? Please help me.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by