3 if ! [ "$INTERACTIVE" ]; then echo "Skipping interactive test $0"; exit 0; fi
11 [ "$INTERACTIVE" ] && read -p "Press a key to continue" || :
15 sshgw cangw -A -s can0 -d can1
16 latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 2) -n len2
18 latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 4) -n len4
20 latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 6) -n len6
22 latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 8) -n len8
25 ADDITIONAL_PLOTS=detail
28 if [[ "$1" = detail ]]; then
33 echo "set logscale xy"
36 set title "Measurment precission PC versus CANalyzer"
37 set grid xtics mxtics ytics mytics lw 1, lw 0.5
38 set xlabel "Time [ms]"
39 set ylabel "Latency profile [messages]"
40 plot [$range] [1:$COUNT] \
41 "len2-hist.txt" with lp lt 1 title "2 byte messages", \
42 "len4-hist.txt" with lp lt 2 title "4 byte messages", \
43 "len6-hist.txt" with lp lt 3 title "6 byte messages", \
44 "len8-hist.txt" with lp lt 4 title "8 byte messages"