Hi Martin,

Thanks for the answer. My confusion is that when you generate, for example,
a multi-stage polyphase decimator in GRC, a 'declare_sample_delay(0)' code
will be generated for each decimation block. When I go from Python to C++ I
thought I should do the same. Now, since the default is zero, does that
mean the 'declare_sample_delay(0)' codes generated by GRC are redundant?


Thank you.

Best wishes,
Khalid



> Message: 7
> Date: Fri, 22 May 2015 12:00:39 -0700
> From: Martin Braun <martin.br...@ettus.com>
> To: discuss-gnuradio@gnu.org
> Subject: Re: [Discuss-gnuradio] How to "declare_sample_delay" in C++?
> Message-ID: <555f7cd7.2040...@ettus.com>
> Content-Type: text/plain; charset=windows-1252
>
> Not sure what you're asking, the command is wrapped from C++ to Python,
> and hence the same in both domains (see also
>
> http://gnuradio.org/doc/doxygen/classgr_1_1block.html#acad5d6e62ea885cb77d19f72451581c2
> ).
>
> Also, 0 is the default.
>
> M
>
> On 22.05.2015 11:26, khalid.el-darymli wrote:
> > Hi list,
> >
> > I am doing some (polyphase) decimation with GNURadio in C++. I
> > constructed my filters, I wrote some wrapper, and my script compiles
> > perfectly. However, I am a bit unclear about "declare_sample_delay".
> >
> > Assume that I have the block: pfb_decimator_ccf_0_5. To set the sample
> > delay for this block to 0, in python, one uses:
> >
> > self.pfb_decimator_ccf_0_5.declare_sample_delay(0)
> >
> >
> > What is the proper way to do the same command in C++?
> >
> >
> > Thanks in advance.
> >
> > Best wishes,
> > Khalid
> >
> >
> >
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > Discuss-gnuradio@gnu.org
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
>
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to