discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Block taking in message, outputting items


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Block taking in message, outputting items
Date: Thu, 16 Oct 2014 17:37:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Hi David,

"items" is a output/input buffer stream term in GNU Radio.
You can just put whatever data type you'd want (ok, a lot of data types) into PMTs, and send them around; for sample vectors, PMT uniform vectors are the way to go.
If you just use message passing, you don't need to implement a meaningfull work() function -- you don't even have to actually use a subclass of gr::block (but I recommend doing that for the sake of getting loads of functionality for free).

Most probably there are blocks that do what you want, maybe you want something like
random source --> throttle [1] --> message sink?

Greetings,
Marcus

[1] this is one of the *very* few times I'd recommend using throttle. Otherwise, the source will just run at maximum speed and roast the message passing system to a fine crisp.

On 16.10.2014 16:30, David Halls wrote:
Dear All,

How can I create a block like 'Random PDU Generator', but that outputs items rather than PDUs over a message port?

Hopefully its easy but I am not clear if I need a work function or not, and if I don't have one then how do I pass the items out, as one does in a normal block?

Perhaps there are already blocks that do what I am trying to achieve?

Thanks for your help!!

Regards,

David

---------------------------------------------------------------
David Halls Ph.D.
Research Engineer
Toshiba Research Europe Limited
32 Queen Square, Bristol, BS1 4ND, UK
Tel: +44 (0) 117 906 0790


________________________________

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
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

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