From 667c1e8a83b3f5f8e90af824212c8da389f849d2 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 14 Dec 2011 03:50:48 +0100 Subject: few demo scripts --- tests/grab.sh | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'tests/grab.sh') 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 -- cgit v1.2.3