How to use DLL file in MATLAB

19 views (last 30 days)
Arun Sharma
Arun Sharma on 7 Mar 2012
i want to use the function available in a dll file..
HID.dll
to use usb communication. i have read about the loadlibrary function. but don't know how to use this. whenever i use loadlibrary(hid.dll)
it shows error..
can anyone one how to use the dll file functions..
Thanks in Advance

Answers (1)

Walter Roberson
Walter Roberson on 7 Mar 2012
loadlibrary('hid.dll', 'hid.h')
However, you should probably not be calling the HID routines yourself. See http://www.mathworks.com/matlabcentral/answers/25035-matlab-and-hid-communication

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!