File Exchange

image thumbnail

labJack U6 class

version 1.1.0.0 (211 KB) by M. A. Hopcroft
LABJACKU6 is a class file for working with a LabJack U6 data acquisition device on Linux or OS X.

0 Downloads

Updated 10 Dec 2013

View License

LABJACKU6 is a class definition file for working with a LabJack U6 or U6-Pro data acquisition device. It uses the LabJack Exodriver, so it is intended for use with Mac OS X and Linux.

This version only supports analog functions:
1) Analog Input, Single Read
2) Analog Input, Streaming
3) Analog Output

A sample application (LJstream) is included.

Comments and Ratings (1)

Thanks for this, looks pretty good, worked straight away. Still testing it. Using differential mode. (docs don't give an example of how to specify differential channels, I assume you just list channels sequentially [0 1 2 3] wiht ['d' 'd' 'd' 'd'] meaning 2 differential channels of {0 1} and {2 3}?

One thing I don't understand tho is when I ask for a low sample rate (eg 1Hz) it produces an WARNING and it seems to produce too many readings - three - every second (not one?) like this:

labJackU6: WARNING: number of samples read (24) does not agree with packet info (-4)
22:39:35:192 {I added the timestamp)
0 0 0 0 #1
0 0 0 0 #2
0 0 0 0 #3

LJU6/getStreamData:
backlog: 0.0% (0) (error 0)
labJackU6: WARNING: number of samples read (24) does not agree with packet info (-4)
22:39:36:200 (1 second later)
0 0 0 0 #1
0 0 0 0 #2
0 0 0 0 #3
readings 2 and 3 should not exist !

Later the WARNING disappears, but we still have too many readings!
LJU6/getStreamData:
backlog: 0.0% (0) (error 0)
22:39:43:205
0 0 0 0
0 0 0 0
0 0 0 0

When I sample faster (like 100Hz or 300Hz) I still get batches of 3 readings but they make sense in that there are the correct number of samples between the time stamps. Any comments on what might be wrong at low rates?

Updates

1.1.0.0

updated installation instructions for OS X 10.9

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux