Browse Source

welcome on board, claire

tth 2 years ago
parent
commit
15ce537f22
3 changed files with 10 additions and 6 deletions
  1. 0
    1
      serial/README.md
  2. 7
    5
      serial/essai.sh
  3. 3
    0
      viz/pg/README.md

+ 0
- 1
serial/README.md View File

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

+ 7
- 5
serial/essai.sh View File

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

+ 3
- 0
viz/pg/README.md View File

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

Loading…
Cancel
Save