What steps should I follow or what is the MATLAB command that I should use in order to successfully load the dll file for NI's USB-8452 device?

4 views (last 30 days)
Computer Specs: 64 bit Windows 7 OS; MATLAB R2013b; Compiler: Microsoft Visual C++ 2008 SP1
I have in a working folder the following files from National Instrument that pertains to their USB-8452 device: Ni845x.dll and ni845.h files. I attempted to load the functions found in the .h file as follows:
>> [a,b] = loadlibrary('Ni845x.dll','ni845x.h');
...but I am encountering errors. I am enclosing a snippet of the errors since there are about 48 pages of errors generated by MATLAB:
Type 'intkNI845XExportint32NI845X_FUNC' was not found. Defaulting to type error. Found on line 376 of input from line 375 of file ni845x.h
Error using loadlibrary (line 418) Building Ni845x_thunk_pcwin64 failed. Compiler output is: cl -I"C:\Program Files\MATLAB\R2013b\extern\include" /W3 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /nologo -I"C:\Users\MATLAB Scripts" -I"C:\Users\MATLAB Scripts" "Ni845x_thunk_pcwin64.c" -LD -Fe"Ni845x_thunk_pcwin64.dll" Ni845x_thunk_pcwin64.c C:\Users\MATLAB Scripts\ni845x.h(371) : error C2054: expected '(' to follow 'kNI845XExport' C:\Users\MATLAB Scripts\ni845x.h(371) : error C2085: 'NI845X_FUNC' : not in formal parameter list
Are there any steps I can take in order to correct the errors I am encountering?
Thanks in advance for any suggestions.
Floyd

Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!