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
But premier de ce module : recevoir les données fournies par l'automate

View File

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

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

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