
New Matlab class for U6 Exodriver (OS X / Linux)
#1
Posted 15 August 2012 - 01:37 AM
http://www.mathworks...eexchange/37814
I developed it on Mac OS X with Matlab R2012, but it should work with Linux and with earlier versions of Matlab, as long as the Exodriver is installed. It's version 1, and only tested by the author, so it probably has some "unexpected features". I'd be interested in your feedback if you try it out.
Note: user Iandol previously did a similar project for the digital functions of the U6; between the two files most of the device functionality is covered.
#2
Posted 17 August 2012 - 02:36 AM
I put together a class definition file for working with the analog functions of a U6 in Matlab using the Exodriver. It includes the analog functions: analog read, analog streaming, and analog output. You can download it from the FileExchange:
http://www.mathworks...eexchange/37814
I developed it on Mac OS X with Matlab R2012, but it should work with Linux and with earlier versions of Matlab, as long as the Exodriver is installed. It's version 1, and only tested by the author, so it probably has some "unexpected features". I'd be interested in your feedback if you try it out.
Note: user Iandol previously did a similar project for the digital functions of the U6; between the two files most of the device functionality is covered.
Great news, will have a look when I get time and perhaps we can create a unified class at some point! I assume it will also work for the U3 (haven't checked if the low-level functions are the same for analog, suspect they are except for dealing with calibration defaults etc.)?
#3
Posted 20 August 2012 - 05:44 AM
#4
Posted 20 August 2012 - 12:40 PM
http://labjack.com/products/comparison
#5
Posted 02 October 2012 - 09:06 AM
#6
Posted 02 October 2012 - 01:14 PM
#7
Posted 16 October 2012 - 09:22 AM
This is correct. On OS X, you will also need to install Xcode (or just the command-line tools) in order to compile and use the Exodriver with matlab. See this matlab support page for details:You need MATLAB and the Exodriver installed. LJFuse is not required. mhopeng provided a MATLAB U6 class definition.
http://www.mathworks.../data/1-FR6LXJ/
#8
Posted 15 June 2013 - 08:47 AM
#9
Posted 17 June 2013 - 10:09 AM
In the Exodriver source code download, take a look at the C examples for UE9 and Exodriver usage and examples (examples/UE9) and the header file (liblabjackusb/labjackusb.h) for the Exodriver functions' documentation:
https://github.com/labjack/exodriver
Take a look here for UE9 low-level function (command/response packets) documentation:
http://labjack.com/s...9/users-guide/5
Also, on a UE9 you can use TCP for communications instead of the Exodriver and use low-level functions.
#10
Posted 19 June 2013 - 11:13 AM
#11
Posted 19 June 2013 - 12:28 PM
http://www.mathworks...-interface.html
Our general TCP low-level C examples are here:
http://labjack.com/s...ive-tcp-example
Setting up the low-level command arrays/packets and getting data out of the response arrays/packet should be the same or similar to what's in the U6 class except for using TCP open/write/read/close and UE9 specific low-level functions instead. The normal TCP port is 52360 and the stream port is 52361. You will want to write/read binary data, and set the fwrite/fread precision to 'uchar' or 'uint8' (not sure which would be better).
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users