. lib.sh
-load_lincan_hw
+t() {
+ PID_S=`vca_canping -s 1 -b -r -d $CAN1`
+ vca_canping -m 1 -r -v -g $DRIVER -t 1 -d $CAN0 -w 5 -c 1000
+ kill $PID_S
+}
-PID_S=`vca_canping -s 1 -b -r -d /dev/can1`
+PLOT_CMD='
+set logscale y
+set grid
+set title "Round-trip time measurement (`uname -r`)"
+set xlabel "Time [{/Symbol m}s]"
+set ylabel "Latency profile [messages]"
+plot [0:] "socketcan-1000.dat" with lp title "Socketcan",\
+ "lincan-1000.dat" with lp title "Lincan"
+'
-vca_canping -m 1 -r -v -t 1 -d /dev/can0 -w 5 -c 1000
-
-kill $PID_S
-#killall -9 vca_canping