1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-12-19 18:32:47 +02:00

m1rc3/norruption/: infrastructure and test script for temperature measurements

This commit is contained in:
Werner Almesberger 2011-10-07 19:25:29 -03:00
parent 70e88c5651
commit 8741616d8d
2 changed files with 23 additions and 0 deletions

5
m1rc3/norruption/mtemp Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
while true; do
echo `date --rfc-333=seconds` `printf '%.3f\n' \`./tco.py\``
sleep 60
done

18
m1rc3/norruption/tco.py Executable file
View File

@ -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?")