/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/frame.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
 
TESTS_PATH="`dirname \"$0\"`"
4
 
TESTS_PATH="`( cd \"$TESTS_PATH\" && pwd )`"
5
 
 
6
 
function pci {
7
 
    PCILIB_PATH=$TESTS_PATH/..
8
 
    LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
9
 
}
10
 
 
11
 
pci --stop-dma dma1
12
 
#pci --reset
13
 
 
14
 
echo "Set packet size 1024 .. "
15
 
pci -w cmosis_number_lines 1088
16
 
#pci -w xrawdata_packet_length 4096
17
 
pci --start-dma dma1
18
 
usleep 1000
19
 
 
20
 
echo "Send frame request ... "
21
 
pci -w control 1e9
22
 
usleep 100000
23
 
pci -w control 1e1
24
 
usleep 100000
25
 
 
26
 
echo "Enable Readout ... "
27
 
pci -w control 3e1
28
 
 
29
 
usleep 100000
30
 
 
31
 
pci -r dma1 -o bench.out --multipacket
32
 
 
33
 
pci -w control 1e1
34
 
 
35
 
pci --stop-dma dma1
36