/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to tests/ipecamera/grab-hwtrigger.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2015-04-20 20:01:04 UTC
  • Revision ID: csa@suren.me-20150420200104-b5xny65io8lvoz3w
Big redign of model structures

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/bash
2
 
 
3
 
function pci {
4
 
    PCILIB_PATH="/root/pcitool"
5
 
    LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
6
 
}
7
 
 
8
 
function enable_hw_trigger {
9
 
    usleep 100000
10
 
    pci -w control 0xa01
11
 
}
12
 
 
13
 
rm -f images.raw
14
 
 
15
 
enable_hw_trigger &
16
 
pid=$!
17
 
 
18
 
echo "Starting the grabber"
19
 
pci -g -o images.raw --run-time 60000000 --verbose 10 -o /dev/null
20
 
wait $pid