Technical information on how to install LabJack on classroom laptops.

Installing Labjack, LJPyhton on Mac. (Tested with OSX 10.8.5)

First install c, c++ (see below)

On older Macs, get libusb

Get and install the driver for OSX from here:
http://labjack.com/support/linux-and-mac-os-x-drivers
Run the installer.

Get LabJackPython from here: http://labjack.com/support/labjackpython
Download http://labjack.com/sites/default/files/2014/04/LabJackPython-4-24-2014.zip

Run the setup.py code, with the command:
sudo python setup.py install

Now you can run programs to use the LabJack
streamTest.py and workingWithModbus.py are interesting.

IMPORTANT: To allow students to use the LabJack need to set permissions
sudo chmod a+rx /usr/local/lib

(I keep forgetting to do that.)

If you you the above steps, the “blinking_led.py” program should work. (See next web page.)

Info on LabJack python programming:
http://labjack.com/support/labjackpython/low-level
http://labjack.com/support/u3/users-guide/2.7

Where to find labjack modbus info:
http://labjack.com/support/modbus/ud-modbus
https://docs.google.com/spreadsheet/ccc?key=0Amxc6oFjz5FHcE4yOU9udFljaUo5S3I3X2ZWRFhSVEE&authkey=CO6Az_8N&hl=en&authkey=CO6Az_8N#gid=2
Modbus timers and PWM:
http://labjack.com/support/ljfuse/advanced
Exodriver source code:
https://github.com/labjack/exodriver

For Stern laptop, also installed Text Wrangler and Text Wrangler command line tools:
http://www.barebones.com/support/textwrangler/cmd-line-tools.html

-----------------------------------------------------------------

Install c, c++ (actually gcc and g++) compiler
http://www.mkyong.com/mac/how-to-install-gcc-compiler-on-mac-os-x/

But for older macs, ie Snow leopard osx 8.6 this works(?): http://www.mkyong.com/mac/how-to-install-gcc-compiler-on-mac-os-x/

https://developer.apple.com/downloads/index.action
login and get “Developer Tools” category, find “Command Line Tools for Xcode“

Install, and it works!

Install xwindows: http://support.apple.com/kb/ht5293
http://xquartz.macosforge.org/landing/

Compiling:
g++ -Wall -W -Werror xwindow_example.cpp -o xwindow_example -I/usr/X11R6/include -L/usr/X11R6/lib -lX11
(On the mac the headers amd libraries are in non-standard places.)