multi_rx option to log recovered symbols to file

This commit is contained in:
Max 2020-03-05 22:15:12 -05:00
parent 57a682d5f0
commit 733e891d22
1 changed files with 3 additions and 0 deletions

View File

@ -221,6 +221,9 @@ class rx_block (gr.top_block):
chan = channel(cfg, dev, self.verbosity)
self.channels.append(chan)
self.connect(dev.src, chan.demod, chan.decoder)
if 'log_symbols' in cfg.keys():
chan.logfile = blocks.file_sink(gr.sizeof_char, cfg['log_symbols'])
self.connect(chan.demod, chan.logfile)
def scan_channels(self):
for chan in self.channels: