From: W. Trevor King Date: Sat, 12 Nov 2011 21:30:06 +0000 (-0500) Subject: Update slow_bend.py to version 0.3. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=708a334d9265b9e84e76287cdcca5c0b491359b6;p=blog.git Update slow_bend.py to version 0.3. --- diff --git a/posts/slow_bend/slow_bend.py b/posts/slow_bend/slow_bend.py index bb0cd5d..0b6963c 100755 --- a/posts/slow_bend/slow_bend.py +++ b/posts/slow_bend/slow_bend.py @@ -4,6 +4,8 @@ # # Version 0.2, WT King, Feb. 20th, 2008 # (added OptionParser code and stripchart debug parameters) +# Version 0.3, WT King, Mar. 25th, 2010 +# (added multiple channels option) """ Simple single analog channel polling software. @@ -12,7 +14,7 @@ waking up every dt seconds to record the current voltage. Designed for Liming's cellulase activity measurements. """ -import comedi_single_aio +import pycomedi.single_aio as single_aio import time import curses_check_for_keypress import stripchart @@ -20,26 +22,29 @@ import data_logger DEFAULT_STRIPVERBOSE = False TEXT_VERBOSE = False -LOG_DIR = '~/data/slow_bend' # set LOG_DIR = None to disable logging +LOG_DIR = '~/rsrch/data/slow_bend' # set LOG_DIR = None to disable logging class slow_bend : """ Take measurements on a single channel every dt seconds. Save '