discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] gr_sync_decimator(custom block)


From: Martin Braun
Subject: Re: [Discuss-gnuradio] gr_sync_decimator(custom block)
Date: Thu, 20 Feb 2014 08:34:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 02/20/2014 06:58 AM, sarankumar wrote:
> Hi,
> I wrote a custom block to compute beamforming weights. The block takes 8
> inputs and 8 outputs.
> It takes 64 samples from each input stream and produces 1 output in each
> output stream.I am not getting any output and GRC stops working when I
> set the decimation rate to 64.I tried printing noutput_items and it is
> like 64,32,16,8,4,2,1 and stops. But when I set the rate to 1 the block

When you say 'stops', what happens to the upstream blocks?
(also you're using GR < 3.7, might want to switch when you're writing
new stuff... but that seems unrelated).

> beamformer_cc_impl::beamformer_cc_impl(int nsamples)
>       : gr_sync_decimator("beamformerr_cc",
>      gr_make_io_signature(1, -1, sizeof (gr_complex)),
>      gr_make_io_signature(1, -1, sizeof (gr_complex)),nsamples),
>       d_samples(nsamples),
>       
>     {
>        
>     }
> int
>     beamformer_cc_impl::work(int noutput_items,
>  gr_vector_const_void_star &input_items,
>  gr_vector_void_star &output_items)
>     {
> return noutput_items;
> }

This seems correct. I'm more concerned about what's going in upstream.

M



reply via email to

[Prev in Thread] Current Thread [Next in Thread]