summaryrefslogtreecommitdiffstats
path: root/tests/grab.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/grab.sh')
-rwxr-xr-xtests/grab.sh25
1 files changed, 16 insertions, 9 deletions
diff --git a/tests/grab.sh b/tests/grab.sh
index 35e690b..5fa6100 100755
--- a/tests/grab.sh
+++ b/tests/grab.sh
@@ -5,13 +5,20 @@ function pci {
LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
}
-rm -f image.raw
+rm -f images.raw
-echo "Reset..."
-pci --reset
-echo "Stop DMA..."
-pci --stop-dma
-echo "Start DMA..."
-pci --start-dma dma1
-echo "Request..."
-pci -g -o image.raw
+
+echo "Starting the grabber"
+pci -g -o images.raw --run-time 3000000 &
+pid=$!
+
+usleep 1000000
+
+for i in `seq 1 10`; do
+ echo "Trigger $i"
+ pci --trigger
+ usleep 100000
+done
+
+echo "Waiting grabber to finish"
+wait $pid