GRC RFNoC Digital Upconverter Block Python Code Generation
Closed this issue · 4 comments
GRC does not generate valid Python code for the RFNoC Digital Upconverter Block.
GRC adds an additional argument (5 instead of 4) when instantiating the ettus.rfnoc_duc block.
The method set_freq is run before set_input_rate in the generated Python code. When this is done, Python complains that it is no longer possible to set the input_rate. The method set_freq also does not appear to change the frequency shift of the ettus.rfnoc_duc.
We've replicated this issue with our X310 integration efforts. needs to be resolved or there's no way to use GRC with RFNOC radio tx.
We've encountered this issue as well today. Not that it matters, but we've also used X310.
Line 11 in ettus_rfnoc_duc.block.yml is a problem:
make: |-
ettus.rfnoc_duc(
self.rfnoc_graph,
${num_chans},
uhd.device_addr(${block_args}),
${device_select},
${instance_index})
Workaround: you can delete it from prefix/share/gnuradio/grc/blocks/ettus_rfnoc_duc.block.yml