id: radio_astro_chart_recorder
label: chart_recorder
category: '[radio_astro]'

templates:
  imports: from gnuradio import radio_astro
  make: radio_astro.chart_recorder(${scan_length}, ${chart_run}, ${save_to_file}, ${prefix}, ${integration_time})
  callbacks:
    - save_file(${save_to_file})
    - start_run(${chart_run})
#  Make one 'parameters' list entry for every parameter you want settable from the GUI.
#     Keys include:
#     * id (makes the value accessible as \$keyname, e.g. in the make entry)
#     * label (label shown in the GUI)
#     * dtype (e.g. int, float, complex, byte, short, xxx_vector, ...)
parameters:
- id: scan_length
  label: scan_length
  dtype: float
- id: chart_run
  label: chart_run
  dtype: int
- id: save_to_file
  label: save_to_file
  dtype: int
- id: integration_time
  label: integration_time
  dtype: float

#  Make one 'inputs' list entry per input and one 'outputs' list entry per output.
#  Keys include:
#      * label (an identifier for the GUI)
#      * domain (optional - stream or message. Default is stream)
#      * dtype (e.g. int, float, complex, byte, short, xxx_vector, ...)
#      * vlen (optional - data stream vector length. Default is 1)
#      * optional (optional - set to 1 for optional inputs. Default is 0)
inputs:
- label: in
  dtype: float

outputs:
- label: out
  dtype: float
  vlen: ${scan_length}

#  'file_format' specifies the version of the GRC yml format used in the file
#  and should usually not be changed.
file_format: 1
