bzr branch
http://suren.me/webbzr/alps/pcitool
111
by Suren A. Chilingaryan
Update scripts |
1 |
#! /bin/bash
|
2 |
||
3 |
function pci { |
|
240
by Suren A. Chilingaryan
More structural changes to get ready for stand-alone event engines |
4 |
PCILIB_PATH=".." |
5 |
LD_LIBRARY_PATH="$PCILIB_PATH/pcilib" $PCILIB_PATH/pcitool/pci $* |
|
111
by Suren A. Chilingaryan
Update scripts |
6 |
}
|
7 |
||
149
by Suren A. Chilingaryan
few demo scripts |
8 |
rm -f images.raw |
9 |
||
10 |
||
11 |
echo "Starting the grabber" |
|
12 |
pci -g -o images.raw --run-time 3000000 & |
|
13 |
pid=$! |
|
14 |
||
15 |
usleep 1000000
|
|
16 |
||
172
by Suren A. Chilingaryan
Fix names of cmosis registers in scripts |
17 |
for i in `seq 1 1000`; do |
149
by Suren A. Chilingaryan
few demo scripts |
18 |
echo "Trigger $i" |
19 |
pci --trigger |
|
20 |
usleep 100000
|
|
21 |
done
|
|
22 |
||
23 |
echo "Waiting grabber to finish" |
|
24 |
wait $pid |