]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/rtt-virtual.sh
Generate all formats
[can-benchmark.git] / tests / rtt-virtual.sh
index 1762d33fff4d411aaaa857e63195e1fdad014e2b..4c3d4c0d130e7f4c573f86cf9afc4dcaf881313f 100755 (executable)
@@ -4,7 +4,9 @@
 
 t() {
     PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN0`
-    vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 0 -c $COUNT
+    vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER   -t 1 -d $CAN0 -w 0 -c $COUNT
+    vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-1 -t 1 -d $CAN0 -w 1 -c $COUNT
+    vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-2 -t 1 -d $CAN0 -w 2 -c $COUNT
     kill $PID_S
 }
 
@@ -14,9 +16,13 @@ p() { cat <<EOF
 set title "Round-trip time - virtual CAN"
 set logscale y
 set grid
-set xlabel "Time [{/Symbol m}s]"
+set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
-plot [0:] "socketcan-virtual-1000.dat" with lp title "Socketcan",\
-          "lincan-virtual-1000.dat" with lp title "Lincan"
+plot [0:] "socketcan-virtual-1000.dat" with lp title "Socketcan 0 ms delay",\
+          "lincan-virtual-1000.dat" with lp title "Lincan 0 ms delay",\
+          "socketcan-virtual-1-1000.dat" with lp lt 1 title "Socketcan 1 ms delay",\
+          "lincan-virtual-1-1000.dat" with lp lt 2 title "Lincan 1 ms delay",\
+          "socketcan-virtual-2-1000.dat" with lp lt 1 title "Socketcan 2 ms delay",\
+          "lincan-virtual-2-1000.dat" with lp lt 2 title  "Lincan 2 ms delay"
 EOF
 }