If your block inherits from decim_block, then you can set the decimation statically when you call the superclass initializer in your block's init. In Python3 it would be something like:
class MyBlock(decim_block):
def __init__(self, decim):
super().__init__(name, in_sig, out_sig, decim)
...
On Wed, Mar 3, 2021 at 1:44 AM Harald Fritzsche <dd0vs@dd0vs.de> wrote:
Hello all,
i am struggling a bit with gr.decim_block.
I think its possible to call e.g. self.set_decimation(decim).
But whatever i do, GRC and python tells me:
AttributeError: 'blk' object has no attribute 'decimation'
(in case i try self.decimation())
I am a little bit lost and need guidance.
(under Windows 10 with gr 3.8 – a big thank you to Geof Nieboer!!!!)
Vy73
Harald
DD0VS
No comments:
Post a Comment