# auto-generated by grc.converter id: multirds_rds_parser_table_qt label: RDS Parser Table (qt) category: '[multirds]' parameters: - id: freq_tune label: tuned frequency dtype: float - id: label label: Label dtype: string hide: ${ ('none' if label else 'part') } - id: workdir label: work directory dtype: string hide: part - id: gui_hint label: GUI Hint dtype: gui_hint hide: part - id: nPorts label: Number of Ports dtype: int default: '2' hide: part - id: log label: Log dtype: bool default: 'False' options: ['True', 'False'] option_labels: [Enable, Disable] - id: debug label: Debug dtype: bool default: 'False' options: ['True', 'False'] option_labels: [Enable, Disable] - id: writeDB label: write Database dtype: bool default: 'False' options: ['True', 'False'] option_labels: [Enable, Disable] inputs: - domain: message id: in multiplicity: ${ nPorts } - domain: message id: freq optional: true outputs: - domain: message id: ctrl optional: true - domain: message id: tmc_raw optional: true asserts: - ${ open(workdir+"pty-list.csv").close() or True } - ${ open(workdir+"directory_writable","w").close() or True } - ${ nPorts > 0 } templates: imports: |- import multirds from multirds.rds_parser_table_qt import rds_parser_table_qt, rds_parser_table_qt_Widget,rds_parser_table_qt_Signals make: "<% win = 'self._%s_win'%id %>\n\t\t<% signals = 'self._%s_signals'%id %>\n\ % if not label:\n\t<% label = '\"%s\"'%id %>\n% endif\n${signals} = rds_parser_table_qt_Signals()\n\ self.${id} = multirds.rds_parser_table_qt(${signals},${nPorts},self.set_${freq_tune},${freq_tune},${log},\ \ ${debug},${workdir},${writeDB})\n${win} = rds_parser_table_qt_Widget(${signals},\ \ ${label},self.${id})\n${gui_hint(in)}" make: |- <% win = 'self._%s_win'%id signals = 'self._%s_signals'%id %>\ ${signals} = rds_parser_table_qt_Signals() self.${id} = multirds.rds_parser_table_qt(${signals},${nPorts},self.set_${freq_tune},${freq_tune},${log},${debug},${workdir},${writeDB}) ${win} = rds_parser_table_qt_Widget(${signals},${label},self.${id}) ${gui_hint() % win} callbacks: - set_freq_tune(${freq_tune}); documentation: "show RDS data from multiple stations in QT table input: raw group\ \ data (array of ints) 4x2 raw block data, 4x1 offset chars, 1x1 number of valid\ \ blocks (of last 50) [block1_upper,block1_lower,block2_upper,block2_lower,...,offset1,offset2,offset3,offset4,numerrors]\\\ \ \n The GUI hint can be used to position the widget within the application.\ \ The hint is of the form \"tab_id@tab_index: row, col, row_span, col_span\"\ \ Both the tab specification and the grid position are optional." file_format: 1