welcome on board, claire

This commit is contained in:
tth 2019-01-06 21:17:33 +01:00
parent 0826568604
commit 15ce537f22
3 changed files with 10 additions and 6 deletions

View File

@ -1,4 +1,3 @@
# Serial Input # Serial Input
But premier de ce module : recevoir les données fournies par l'automate But premier de ce module : recevoir les données fournies par l'automate

View File

@ -2,18 +2,20 @@
DEVICE="/dev/ttyACM0" DEVICE="/dev/ttyACM0"
DATAFILE="foo.dat" DATAFILE="foo.dat"
TMPFILE="/tmp/dd2data"
IMAGE="graphe.png" IMAGE="graphe.png"
NB_READ=1000 NB_READ=12000
./t -n ${NB_READ} -d ${DEVICE} | tee -a ${DATAFILE} ./t -n ${NB_READ} -d ${DEVICE} | tee -a ${DATAFILE}
gnuplot << __EOC__ gnuplot << __EOC__
set term png size 1024,512 set term png size 1600,512
set output "${IMAGE}" set output "${IMAGE}"
set grid set grid
set xdata time set xdata time
set timefmt "%s" set timefmt "%s"
set format x "%H:%M:S" set format x "%H:%M:%S"
plot "${DATAFILE}" using 1:2 title " foo" with lines, \ plot "${DATAFILE}" using 1:2 title " foo" with lines, \
"${DATAFILE}" using 1:3 title " bar" with lines, \ "${DATAFILE}" using 1:3 title " bar" with lines, \
"${DATAFILE}" using 1:4 title "quux" with lines, \ "${DATAFILE}" using 1:4 title "quux" with lines, \

3
viz/pg/README.md Normal file
View File

@ -0,0 +1,3 @@
# Visualisation avec PyGame
Welcome on-board, Claire !