From 708a334d9265b9e84e76287cdcca5c0b491359b6 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 12 Nov 2011 16:30:06 -0500 Subject: [PATCH] Update slow_bend.py to version 0.3. --- posts/slow_bend/slow_bend.py | 86 +++++++++++++++++++++--------------- 1 file changed, 51 insertions(+), 35 deletions(-) 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 '