Research and Teaching Blog

7 Posts with tag: python

DIY thermal cycler

This post is way long overdue. In the Fall of 2008, (or was it 2007?) I taught a small module in the ABE 221 course dealing with automation in Biological Engineering. My hope was to create a home-made thermal cycler for less than $1000. Of course many people in the DIYBio community have constructed thermal cyclers for way less, and truly, you probably don't need to pay more than $300-400 (perhaps even less) to build a reasonably good quality ...

Posted on September 13, 2011 0 Comments
Tags: Do it yourself Biology , Instrumentation , labjack , programming , python , synthetic biology

Labjack Sensors

Here are some resources on installing the drivers for Labjack on Windows, a prebuilt installer for Mac OS X as well as the python modules.

Steps required to install the LabJackPython module:

  1. Open a command prompt (Click on Start > Run and type cmd in the box. Should open a DOS window)
  2. Change directory to the folder where you have your LabJackPython files extracted (e.g. 'cd \Downloads\LabJackPython\)
  3. type the command 'python setup.py install' in the folder where the ...

Posted on November 29, 2010 0 Comments
Tags: Instrumentation , labjack , programming , python , tsm435

Temperature and RH in 376A

Here's an experiment. I have a script uploading hourly temperature and humidity data to a spreadsheet. Here's the visualization of the temperature and humidity data in my office.

Posted on November 23, 2010 0 Comments
Tags: Instrumentation , labjack , miscellaneous , programming , python

Reversing a string

Problem: Reverse a user-input string and write it to a file

Solution: In Python, there are a number of ways to reverse a string. The most direct method involves reading the characters in reverse and performing a concatenation on them. By far the most elegant way to do it is:

>>> 'hello'[::-1]
'olleh'

The reversed() function does not do the trick, as it is meant to work on things like iterators.

Writing the result to a file should involve the ...

Posted on October 26, 2009 0 Comments
Tags: courses , python , tsm435

Web interface for the LabJack

One of the things I've always wanted to do is to create a web-based controller for the LabJack family of devices. This is not exactly the same thing I've written about in the past, but it is not unrelated either. U3OverIP provides a good framework to build the web interface, but writing the actual interface is non-trivial - at least for me.
Any way. Here's a simple implementation. Look at the "Announcements" section of the index page of ...

Posted on June 10, 2009 1 Comment
Tags: Instrumentation , labjack , programming , python

U3OverIP

Joshua Sander, our student in ABE is currently finishing up his MS working on a a high channel DAQ system as shown in the figure. Briefly, the system is constructed as follows:

First the hardware:

We have a standard LAMP server with the labjack u3 connected to it. We built our own MUX boards capable of doing analog or frequency (RH) signals using an Analog Devices (I believe ADG506) with basic RC filtering. The sensors are standard chip-based temperature / RH ...

Posted on May 20, 2009 2 Comments
Tags: Instrumentation , labjack , programming , python

First Post

About time I created the research page for my website. Figured I'd make a blog instead, where I can blog about the research. So here it is: "Hello World!".
I used the basic blog structure provided by Ross P (www.rossp.org) and used it to integrate it into the website.

Posted on May 19, 2009 5 Comments
Tags: miscellaneous , programming , python

 
Loading