frame.sh 519 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. function pci {
  3. PCILIB_PATH="/root/pcitool"
  4. LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
  5. }
  6. pci --stop-dma dma1
  7. pci --reset
  8. echo "Set packet size 1024 .. "
  9. pci -w number_lines 1088
  10. #pci -w xrawdata_packet_length 4096
  11. pci --start-dma dma1
  12. usleep 1000
  13. echo "Send frame request ... "
  14. pci -w control 1e9
  15. usleep 100000
  16. pci -w control 1e1
  17. usleep 100000
  18. echo "Enable Readout ... "
  19. pci -w control 3e1
  20. usleep 100000
  21. pci -r dma1 -o bench.out --multipacket
  22. pci -w control 1e1
  23. pci --stop-dma dma1