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

 Respuesta aceptada

Walter Roberson
Walter Roberson el 25 de Sept. de 2013

1 voto

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 comentarios

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de Sept. de 2013

Comentada:

el 13 de Ag. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by