[Discuss-gnuradio] return value of gr::block::general_work

2018-01-17 Thread Weihan Chen
Hi, >From the manual it says this number is "number of items actually written to each output stream". But I'm a bit confused that if we have a block with multiple output ports, then what does the return value mean? Please help, thanks. Regards, Weihan _

Re: [Discuss-gnuradio] return value of gr::block::general_work

2018-01-17 Thread Weihan Chen
ut > ports. The buffer size of all output ports are the same. > > Best, > Sakthivel > > On Wed, Jan 17, 2018 at 4:23 PM, Weihan Chen wrote: > >> Hi, >> >> From the manual it says this number is "number of items actually written >> to each output

[Discuss-gnuradio] IFFT block output incorrect?

2018-02-02 Thread Weihan Chen
Hi, I was trying to compare the output of the IFFT block and that from Matlab. Here's what I get: My input: [1,2,3,4] output from Matlab: [2.5+0j, -0.5-0.5j, -0.5+0j, -0.5+0.5j] output from gnuradio: [10+0j, 2+2j, -2+0j, 2-2j] parameter for the FFT block: fft.fft_vcc(4, False, (()), True, 1) It se