Hi every one,
I want to use a buffer to receive streams from my transmitter module,
read streams from this buffer and send the obtained streams to my
receiver module. I followed the document of “Simple User Manual for
Gnuradio 3.1.1” to use buffer as the format:
buf=gr.buffer(4000,gr.sizeof_gr_complex). There is an error says
“TypeError: Required argument ‘link’ (pos 3) not found”. I checked some
information and knew there should be a ‘gr_block_sptr link’ in the arg
lists. But I don’t know the detail of usage. I looked up from Google but
got nothing helpful. There even has no one instance showing how to use
buffer in gnu radio. I can only see some explains that how the buffer be
constructed in C++ modules. Anybody used buffer in gnuradio? Thanks for
On Mon, Aug 29, 2011 at 07:04:35PM +0200, Zhonghua wrote:
showing how to use buffer in gnu radio. I can only see some explains
that how the buffer be constructed in C++ modules. Anybody used
buffer in gnuradio? Thanks for your instruction.
I have the strong suspicion you have misunderstood something:
- Like most other objects, you create buffers with the ‘make’ function,
in this case gr_make_buffer().
- I have, in several years of GNU Radio, never actually created a
gr_buffer myself (although I’ve visited the source several times :).
So unless you’re doing something totally funky to the GR core, I
doubt you actually need it.
That’s why you don’t see it anywhere in GR.
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)
Dipl.-Ing. Martin B.
Phone: +49 721 608-43790
Fax: +49 721 608-46071
KIT – University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association