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

 Accepted Answer

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 Comments

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.
I re-installed MS compiler, works.
Hi, I am facing the same problem. How can I get MS compiler? Please help me.

Sign in to comment.

More Answers (0)

Categories

Asked:

on 25 Sep 2013

Commented:

on 13 Aug 2014

Community Treasure Hunt

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

Start Hunting!