test_python_ai.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding: utf-8 -*-
00003 #
00004 #       test_python_ai.py
00005 #
00006 #       Copyright 2014 Raul Perula-Martinez <raul.perula@uc3m.es>
00007 #
00008 #       This program is free software; you can redistribute it and/or modify
00009 #       it under the terms of the GNU General Public License as published by
00010 #       the Free Software Foundation; either version 2 of the License, or
00011 #       (at your option) any later version.
00012 #
00013 #       Based on the example code from:
00014 #       http://labjack.com/support/u12/examples/python
00015 #
00016 #       More examples:
00017 #       http://labjack.com/support/u12/users-guide/5
00018 
00019 import u12
00020 
00021 d = u12.U12()
00022 
00023 while True:
00024     print d.eAnalogIn(channel=0, gain=0)


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