aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2012-08-22 16:56:17 +0800
committerAndy Green <andy.green@linaro.org>2012-08-22 16:56:17 +0800
commitbee9a7159ef18565741881f507632c6f3889d96c (patch)
tree80bb6c6bdfb8c71066080ac6be18ee438dad9096
parentcd0894427147bfe8177a6d9f87f4f0cd5cac52f6 (diff)
update scripts for multi probe
Signed-off-by: Andy Green <andy.green@linaro.org>
-rwxr-xr-xscripts/aep-capture.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/aep-capture.sh b/scripts/aep-capture.sh
index 34d74c6..2a317bf 100755
--- a/scripts/aep-capture.sh
+++ b/scripts/aep-capture.sh
@@ -27,8 +27,7 @@ if [ ! -z "$3" ] ; then
fi
if [ ! -z "$4" ] ; then
- MEAN=1
- OPTS="-x -j -a 5"
+ OPTS="-x -j -a "$(( $SAMPLES / 1000 ))
fi
cat config | grep "^\\ " | tr -s ' ' | tr -s '\t' | tr '\t' ' ' | cut -d ' ' -f2 > .chans
@@ -73,3 +72,8 @@ done
echo done - result in cap$count
+if [ ! -z "$4" ] ; then
+ echo Average power summary
+ cat cap$count | head -n 50 | grep ^sam | cut -d' ' -f2-
+ cat cap$count | tail -n1 | cut -d' ' -f2-
+fi