test_python.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding: utf-8 -*-
00003 
00004 #   test_labjack.py
00005 #
00006 #   Copyright 2014 Raul Perula-Martinez <raul.perula@uc3m.es>
00007 #
00008 #   Based on the example code from:
00009 #       http://labjack.com/support/u12/examples/python
00010 #
00011 #   More examples:
00012 #       http://labjack.com/support/u12/users-guide/5
00013 
00014 import u12
00015 
00016 d = u12.U12()
00017 print d.eAnalogIn(0)
00018 
00019 print "\nsimilar output: {'overVoltage': 0, 'idnum': 0, 'voltage': 1.4599609375}"


maggie_labjack_drivers
Author(s): Raul Perula-Martinez
autogenerated on Mon Sep 14 2015 03:06:34