________________________________________ > From: Activecat [active...@gmail.com] > Sent: 17 June 2014 08:39 > To: discuss-gnuradio@gnu.org > Cc: David Halls > Subject: Re: [Discuss-gnuradio] Using set_min_output_buffer() in Python block
> On Tue, Jun 17, 2014 at 1:02 AM, David Halls > <david.ha...@toshiba-trel.com<mailto:david.ha...@toshiba-trel.com>> wrote: > Hey Martin, > My calls using > self.set_min_output_buffer(4096*2) > and > self.set_min_noutput_items(4096) > fail at runtime. Perhaps I am missing some import statements? > "AttributeError: 'bsld_dec_butterfly_cfb' object has no attribute > 'set_min_output_buffer'" > Regards, > David > The "set_min_noutput_items()" is not yet a supported python statement [1] as > per March 06, 2014. > Also, I believe this statement should be placed in the member functions > (constructor, work function, callback function etc) of your custom block, > don't put it at the wrong place. > In alternative, you may want to replace it with "set_output_multiple()" if > this is more appropriate. > 1. > http://gnuradio.4.n7.nabble.com/self-set-min-noutput-items-is-not-a-valid-python-command-in-gnuradio-td46731.html Thanks Activecat!!!!!!!!!!!!!!!!!! I had the problem that "out_rc[0:len(rcABm)] = rcABm ValueError: operands could not be broadcast together with shapes (4096) (5376)" where "out_rc = output_items[3]" using set_output_multiple(4096*2) has resolved my problem by increasing the length of the output buffer vector to 4096*2. I wonder if there is a fixed limit as to how far I can stretch this? In the future I may want my decoder to output even more than blocks in one go. Regards, David ________________________________ NOTE: The information in this email and any attachments may be confidential and/or legally privileged. This message may be read, copied and used only by the intended recipient. If you are not the intended recipient, please destroy this message, delete any copies held on your system and notify the sender immediately. Toshiba Research Europe Limited, registered in England and Wales (2519556). Registered Office 208 Cambridge Science Park, Milton Road, Cambridge CB4 0GZ, England. Web: www.toshiba.eu/research/trl --------------------------------------------------------------------------------------- This email has been scanned for email related threats and delivered safely by Mimecast. For more information please visit http://www.mimecast.com ---------------------------------------------------------------------------------------
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio