LabJack on Mac OS X

LabJack sells some nice ADC/DAC, digital I/O devices with quite good Linux / Mac OS X support. The cheapest products from LabJack are the U3 devices in the versions U3-LV (low voltage) and U3-HV (high voltage).

Exodriver - Native libusb low level driver

Python Module

You have to install the exodriver first. Works great!

Installation:

cd ~/Downloads
git clone git://github.com/labjack/LabJackPython.git
cd LabJackPython
sudo python setup.py install

To measure something with a U3 device / small speed test:

import time
import u3
d = u3.U3()
d.configU3()
a=time.time()
for i in range(1000):
    d.getAIN( 0 )
b=time.time()
d.close()
print "%.3f s for 1000 values: %d Hz" % (b-a, 1000/(b-a))

Output for my U3-HV is:

1.035 s for 1000 values: 965 Hz

Multiple analog inputs can be read at about 900 Hz with the Python module on my Mac OS X 10.6.8 machine with Python 2.7.1.

For more functions please refer to the source code of the U3 class, u3.py.

Virtual Filesystem

LabView

Resources

Comments