From cb0b256cf007cfdae177e0a8abf73e9243dba068 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 12 Nov 2011 16:28:32 -0500 Subject: [PATCH] Add slow_bend.py version 0.2. --- posts/slow_bend/slow_bend.py | 139 +++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100755 posts/slow_bend/slow_bend.py diff --git a/posts/slow_bend/slow_bend.py b/posts/slow_bend/slow_bend.py new file mode 100755 index 0000000..bb0cd5d --- /dev/null +++ b/posts/slow_bend/slow_bend.py @@ -0,0 +1,139 @@ +#!/usr/bin/python +# +# W. Trevor King, Jan. 29th, 2008 +# +# Version 0.2, WT King, Feb. 20th, 2008 +# (added OptionParser code and stripchart debug parameters) + +""" +Simple single analog channel polling software. +Spends most of its time sleeping, +waking up every dt seconds to record the current voltage. +Designed for Liming's cellulase activity measurements. +""" + +import comedi_single_aio +import time +import curses_check_for_keypress +import stripchart +import data_logger + +DEFAULT_STRIPVERBOSE = False +TEXT_VERBOSE = False +LOG_DIR = '~/data/slow_bend' # set LOG_DIR = None to disable logging + +class slow_bend : + """ + Take measurements on a single channel every dt seconds. + Save '