From 8741616d8dcd7050ce8f91c957ce223a7e84e843 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 7 Oct 2011 19:25:29 -0300 Subject: [PATCH] m1rc3/norruption/: infrastructure and test script for temperature measurements --- m1rc3/norruption/mtemp | 5 +++++ m1rc3/norruption/tco.py | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 m1rc3/norruption/mtemp create mode 100755 m1rc3/norruption/tco.py diff --git a/m1rc3/norruption/mtemp b/m1rc3/norruption/mtemp new file mode 100755 index 0000000..2cf8aa7 --- /dev/null +++ b/m1rc3/norruption/mtemp @@ -0,0 +1,5 @@ +#!/bin/sh +while true; do + echo `date --rfc-333=seconds` `printf '%.3f\n' \`./tco.py\`` + sleep 60 +done diff --git a/m1rc3/norruption/tco.py b/m1rc3/norruption/tco.py new file mode 100755 index 0000000..ac069bd --- /dev/null +++ b/m1rc3/norruption/tco.py @@ -0,0 +1,18 @@ +#!/usr/bin/python + +# +# Read the thermocouple on a PicoTest M3500 connected via USB +# + +# +# This uses the tmp library from +# svn.openmoko.org/developers/werner/ahrt/host/tmc/ +# + +import tmc.instrument, tmc.meter + +tmc.instrument.debug_default = False +tmc.meter.debug_default = False +m = tmc.meter.picotest_m3500a() +m.debug = False +print m.query(":MEAS:TCO?")