If you want to try compiling the mex files for yourself, for MATLAB 2013a (and 2015a) you can install the Microsoft Windows SDK 7.1 (there are other options as well): Notes for proper installation of SDK 7.1: % Building with 'Microsoft Windows SDK 7.1 (C++)'. Ljdir='D:\Documents\MYMATLAB\labjack' % directory with the.
% installed properliy, see document on Labjack for 64 bit Windows % rebuild labjack mex-files for 64bit Matlab Here is the Matlab script that does it all, in one go: >mex –setup % make sure that the SDK 7.1 C++ compiler is there Rebuild labjack mex-files for 64bit Matlab I now have 2 different ljackuw.dll: one in System32, 133120 bytes, one in SysWOW64, 128000 bytes, both of May 9, 2014. Now uninstalled the heritage version (and deleted the dlls and libs in Windows\System32) and installed the 64bit U12 driver (and Labview RTI where I manually had to delete Cwds.hlp in Windows\SysWOW64).
Copying 32-bit drivers to System32 will not make them work in 64-bit applications. It doesn't sound logical, that is the way Windows has it.These are the typical system search paths. On 64-bit Windows, 32-bit drivers are located in the Windows\SysWOW64 folder and 64-bit drivers are in Windows\System32 folder. It seems like your MATLAB code was using our old MEX dlls from Matlab_func.zip, which uses ljackuw.dll. What are the high-level drivers or whatever that Matlab requires to access the functions? Otherwise if you are rewriting the LabJack calls to not use the MEX files, then it is no longer necessary. If you are rebuilding the MEX dll files, then you still want that folder.
Note that our software, not including the dlls, are installed in the "\Program Files (x86)\LabJackU12Legacy" folder now.ĭo I still require the labjack/ folder (from Matlab_func.zip)? "heritage" version as the installer will install newer versions of our software/drivers. Our latest installer, LabJack-U12-Installer-, will install both 32 and 64-bit versions of our dll. Second, with 64-bit MATLAB you will need to use our 64-bit U12 driver. NET interface or use the U12 driver directly with MATLAB loadlibrary/calllib functions. To continue using this interface, you will need to build new MEX files (dlls) with your version of MATLAB and the cpp source files:Īlternatively, you can update your MATLAB and LabJack code to use our. They are still available for download here (Old LJMATLAB): If Matlab is 32-bits since it works with our old 1.18 CD installer and MATLAB dlls and cpps which are 32-bit only.įirst, the dlls from Matlab_func.zip are 32-bit only and we don't update those anymore or have 64-bit versions. Problem: call of U12 functions under a 64bit-version of Matlab does not work, though the dll’s are on Matlab’s search path.