Skip to content
Snippets Groups Projects
Forked from Günter Quast / redpitaya-MCPHA
11 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
setup.yaml 2.35 KiB
# Configuration for recording two channels with mimoCoRB
#  -----------------------------------------------------
#
# configure two buffers:
#  - RB_1 for raw waveforms
#  - RB_2 for derived pulse parameters
#  data from RB_2, the result buffer, are saved to a file in csv (text) format.
#
#  - data from RB_1 are also passed to an obsever process driving a real-time display
#  - data from RB_2 are passed to a Reader process driving a real-time histogram display
#
# Notes:
# 
#    1. additional config files controlling the user functions are
#       located in the subdirectory config/
#    2. necessary application-specific user code is located
#       in the subdirectory modules/
#
# ----------------------------------------------------------------------------
#

RingBuffer:
  # define ring buffers
  - RB_1:
      # raw input data buffer (from picoScope, file or simulation)
      number_of_slots: 100
      channel_per_slot: 1000
      data_type:
          1: ['ch1', "float32"]
          2: ['ch2', "float32"]
  - RB_2:
      # buffer with correct signature double pulse parameters
      number_of_slots: 100
      channel_per_slot: 1
      data_type:
      data_type:
          1: ['ch1_height', "float32"]
          2: ['ch1_position', "int32"]
          3: ['ch1_integral', "float32"]
          4: ['ch2_height', "float32"]
          5: ['ch2_position', "int32"]
          6: ['ch2_integral', "float32"]

Functions:
  # define functions and ringbuffer assignment

  - Fkt_main:
      config_file: "config/spectrum_config.yaml"

  - Fkt_1:
       ##  for simulation with rbPut
       file_name: "redP_mimoCoRB"
       fkt_name: "redP_to_rb"
       num_process: 1
       RB_assign:
           RB_1: "write"

  - Fkt_2:
       file_name: "modules/spectrum_filter"
       fkt_name: "find_peaks"
       num_process: 2
       RB_assign:
           RB_1: "read"
           RB_2: "write"

  - Fkt_3:
      file_name: "modules/save_files"
      fkt_name: "save_to_txt"
      num_process: 1
      RB_assign: