U6, OS 10.7 and Matlab 7.13
6 replies to this topic
Posted 17 January 2012 - 12:12 PM
I have been unsuccessful at getting Matlab to load the library in '/usr/local/include/labjackusb.h'. Before continuing, I just wanted to confirm that I have the right tools to hand. So, I installed the Exodriver and then downladed the UD Matlab library, which was the only Matlab code I could find on the LabJack site. However, after reading a bit more, I now realize UD is the Windows driver. Is there other Matlab code I am missing or is it a simple matter of getting the ljud_LoadDriver to work on the Mac and then the remainder of that library will work?
Posted 17 January 2012 - 01:31 PM
The UD Matlab library is for Windows only, and getting the ljud_LoadDriver working will not make the library work. The OS X library and the Windows driver have different library calls, meaning a different Matlab library would be needed to use the OS X library specific calls. I have little experience with Matlab, but you probably need to load the library (/usr/local/lib/liblabjackusb.dylib) as well as the header file (/usr/local/include/labjackusb.h) to start accessing the library. At this time we do not provide a Matlab library, but you do have the option of using LJFuse or LJSocket with MatLab if you do not want to make a Matlab library. They provide a file IO and TCP interfaces to LabJacks, where you can use built in Matlab file operations or sockets/TCP without the need to access the Mac OS X library. Here are the links to both on our site:
Posted 30 January 2012 - 10:22 AM
I have a Matlab object to control digital I/O and strobe 11bit words via the DB-15 from Matlab, works fine on OS X 10.7 and Matlab, just PM me and I can send you my code...
Posted 11 July 2012 - 03:55 AM
Hello Iandol, I'd be interested in seeing your code, but the PM function doesn't seem to work on this board (or at least I can't figure it out). Can you post it or email it ( mhopeng at gmail )? Thanks!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users