+#!/bin/bash
+
+. lib.sh
+
+main() {
+ sshgw 'for i in `seq 0 127`; do cangw -A -s can0 -d can1 -f $i:fff; done'
+ for i in `seq 0 20 127`; do
+ latester -d can0 -d can1 -d can2 -o -c $COUNT -i $i -h hist-$i.dat -f time-$i.dat
+ done
+}
+
+plot_cmds() {
+ cat <<EOF
+set title "Single GW, no modifications, 127 filters (one per id)"
+set logscale y
+set grid
+set xlabel "Time [{/Symbol m}s]"
+set ylabel "Latency profile [messages]"
+plot [0:] [1:$COUNT] \
+ "hist-0.dat" with lp lt 1 title "Message id 0", \
+ "hist-20.dat" with lp lt 2 title "Message id 20", \
+ "hist-40.dat" with lp lt 3 title "Message id 40", \
+ "hist-60.dat" with lp lt 4 title "Message id 60", \
+ "hist-80.dat" with lp lt 5 title "Message id 80", \
+ "hist-100.dat" with lp lt 6 title "Message id 100", \
+ "hist-120.dat" with lp lt 7 title "Message id 120"
+EOF
+}
+
+test_end
+