Date:2011-10-08 00:25:29 (7 years 8 months ago)
Author:Werner Almesberger
Commit:8741616d8dcd7050ce8f91c957ce223a7e84e843
Message:m1rc3/norruption/: infrastructure and test script for temperature measurements

Files: m1rc3/norruption/mtemp (1 diff)
m1rc3/norruption/tco.py (1 diff)

Change Details

m1rc3/norruption/mtemp
1#!/bin/sh
2while true; do
3    echo `date --rfc-333=seconds` `printf '%.3f\n' \`./tco.py\``
4    sleep 60
5done
m1rc3/norruption/tco.py
1#!/usr/bin/python
2
3#
4# Read the thermocouple on a PicoTest M3500 connected via USB
5#
6
7#
8# This uses the tmp library from
9# svn.openmoko.org/developers/werner/ahrt/host/tmc/
10#
11
12import tmc.instrument, tmc.meter
13
14tmc.instrument.debug_default = False
15tmc.meter.debug_default = False
16m = tmc.meter.picotest_m3500a()
17m.debug = False
18print m.query(":MEAS:TCO?")

Archive Download the corresponding diff file

Branches:
master



interactive