welcome on board, claire
This commit is contained in:
parent
0826568604
commit
15ce537f22
@ -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
|
||||||
|
@ -2,20 +2,22 @@
|
|||||||
|
|
||||||
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, \
|
||||||
"${DATAFILE}" using 1:5 title "booz" with lines
|
"${DATAFILE}" using 1:5 title "booz" with lines
|
||||||
__EOC__
|
__EOC__
|
||||||
|
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