welcome on board, claire
This commit is contained in:
parent
0826568604
commit
15ce537f22
@ -1,4 +1,3 @@
|
||||
|
||||
# Serial Input
|
||||
|
||||
But premier de ce module : recevoir les données fournies par l'automate
|
||||
|
@ -2,18 +2,20 @@
|
||||
|
||||
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"
|
||||
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, \
|
||||
|
3
viz/pg/README.md
Normal file
3
viz/pg/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Visualisation avec PyGame
|
||||
|
||||
Welcome on-board, Claire !
|
Loading…
Reference in New Issue
Block a user