From c19298d1413e2783bf723f5eb4ee098d9b8f159b Mon Sep 17 00:00:00 2001 From: Ivan Fedorov Date: Wed, 1 Aug 2012 00:11:40 +0400 Subject: [PATCH] sr: add gnuplot script for USBee DX and clones --- contrib/gnuplot_usbeedx.gpi | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 contrib/gnuplot_usbeedx.gpi diff --git a/contrib/gnuplot_usbeedx.gpi b/contrib/gnuplot_usbeedx.gpi new file mode 100644 index 00000000..dbf05380 --- /dev/null +++ b/contrib/gnuplot_usbeedx.gpi @@ -0,0 +1,48 @@ +## +## This file is part of the sigrok project. +## +## Copyright (C) 2010 Uwe Hermann +## Copyright (C) 2012 Ivan Fedorov +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## + +# We're setting the colors of the 8 channels to match the colors of the +# probe cables on the CWAV USBee DX: +# background = white, borders = black, axes = gray, +# ch0 = black, ch1 = brown, ch2 = red, ch3 = orange, +# ch4 = yellow, ch5 = green, ch6 = blue, ch7 = violet +set terminal png large size 2048, 1536 xffffff x000000 x404040 \ + x000000 xc25525 xff0000 xff7c00 \ + xfbee13 x37ba34 x425adc x9500d3 +set autoscale +set grid +set ytics ("Channel 3" 2, "Channel 2" 4, "Channel 1" 6, "Channel 0" 8, \ + "Channel 4" 10, "Channel 5" 12, "Channel 6" 14, "Channel 7" 16) +set title "sigrok gnuplot output, http://www.sigrok.org, CWAV USBee DX" +set xlabel "Sample number" +set ylabel "Channel" +set output "sigrok_gnuplot.png" + +plot [0:200000] [0:18] \ +"sigrok_gnuplot.dat" using 1:($6 + 7) with lines linewidth 2 title "", \ +"sigrok_gnuplot.dat" using 1:($7 + 5) with lines linewidth 2 title "", \ +"sigrok_gnuplot.dat" using 1:($8 + 3) with lines linewidth 2 title "", \ +"sigrok_gnuplot.dat" using 1:($9 + 1) with lines linewidth 2 title "", \ +"sigrok_gnuplot.dat" using 1:($5 + 9) with lines linewidth 2 title "", \ +"sigrok_gnuplot.dat" using 1:($4 + 11) with lines linewidth 2 title "", \ +"sigrok_gnuplot.dat" using 1:($3 + 13) with lines linewidth 2 title "", \ +"sigrok_gnuplot.dat" using 1:($2 + 15) with lines linewidth 2 title "" +