full_sequence_ex_rf.sh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #! /bin/bash
  2. export PCILIB_MODEL=ipedma
  3. echo "GLOBAL RESET ... "
  4. ./reset_ex_rf.sh
  5. sleep 0.5
  6. echo "PLL INIT/CONF for KARA 62.5 MHz ... "
  7. ./pll_62_5_KARA.sh
  8. sleep 0.1
  9. ./pll_sync.sh
  10. sleep 0.1
  11. #./set_dac_voltages_25.sh
  12. #sleep 0.1
  13. echo "AXI_MASTER on FPGA INIT ..."
  14. ./AXI_conf.sh
  15. sleep 0.1
  16. echo "AXI_Reconfiguration for SubClass 2, frame per Multi-frame = 16"
  17. ./AXI_ReConf.sh
  18. sleep 0.1
  19. echo "ADCs INIT/CONF SubClass 2, frame per Multi-frame = 16"
  20. ./adc_config.sh
  21. sleep 0.1
  22. echo "SOFT RESET ..."
  23. ./soft_reset.sh
  24. sleep 0.1
  25. echo "SEND TX_TRIG both ADCs ..."
  26. ./tx_trig_adcs.sh
  27. sleep 0.1
  28. ./tx_trig_adcs_left.sh
  29. sleep 0.1
  30. ./tx_trig_adcs_right.sh
  31. sleep 0.1
  32. echo "Gotthard ON ... "
  33. ./G_ON.sh
  34. sleep 0.1
  35. #./set_dac_voltages_25.sh
  36. #sleep 0.1
  37. echo "Number of acquisitions to acquire (Slow Trig.)= 1"
  38. pci -w 0x9024 0x1
  39. sleep 0.1
  40. pci -w 0x9024 0x0 # for internal slow Triger #
  41. sleep 0.1
  42. echo "Number of acquisitions to skip (Slow Trig.)= 0"
  43. pci -w 0x902C 0x0
  44. sleep 0.1
  45. echo "Number of frame to acquire (Fast Trig.)= 1024"
  46. pci -w 0x9020 0x400
  47. sleep 0.1
  48. echo "Number of frame to skip (Fast Trig.)... = 1"
  49. pci -w 0x9028 0x1
  50. sleep 0.1
  51. pci -w 0x9028 0x0
  52. sleep 0.1
  53. #echo "Gotthard ON ... "
  54. ./align_clock.sh
  55. ./align_clock_b.sh
  56. sleep 0.1
  57. pci -w 0x910C 0
  58. sleep 0.1
  59. ./adc_offset_at_0_delay.sh
  60. ./adc_config_2_offset.sh # previous board
  61. #pci -w 0x910C e
  62. #sleep 0.1
  63. pci -w 64 1ffff
  64. pci -w 0x910C 2f
  65. sleep 0.1