1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-12-23 16:25:30 +02:00
ben-wpan/tools/atrf-path/plot
Werner Almesberger a2e0e1d807 tools: new utility atrf-path to measure path characteristics
- Makefile (DIRS): added atrf-path
- atrf-path/Makefile, atrf-path/atrf-path.c: new utility atrf-path to
  measure path characteristics (for now, TX-to-RX path attenuation)
- atrf-path/plot: visualize path loss measurements
2011-04-12 19:43:45 -03:00

24 lines
315 B
Bash
Executable File

#!/bin/sh
usage()
{
echo "usage: file ..." 1>&2
exit 1
}
[ "$1" ] || usage
files=
while [ "$1" ]; do
[ "$files" ] && files="$files, "
files="$files\"$1\""
shift
done
gnuplot -persist <<EOF
set yrange [-94:-10]
set ylabel "RX-TX power (dBm)"
set xlabel "Frequency (MHz)"
set style data lines
plot $files
EOF