[Top][All Lists]

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

Re: [Discuss-gnuradio] test with message_source

From: Dan Halperin
Subject: Re: [Discuss-gnuradio] test with message_source
Date: Thu, 22 Feb 2007 12:08:44 -0800
User-agent: Thunderbird (X11/20070105)

Anastasopoulos Achilleas wrote:
What I don't know how to do is to enqueue a message every time
I press a button.
Can someone point to the right direction as to how this event driven behavior is implemented.

Look in the gnuradio-examples/python/digital/tunnel.py and subfiles.

transmit_path.py has a send_pkt function which calls the send_pkt function in pkt.py (in the gnuradio python libraries directory), which converts a string into the proper format and enqueues it into a message queue.

When you're done with the queue, and you want to close up, call the send_pkt function with eof = True (enqueues gr.message(1)), which tells the queue that no more input is coming and enables the fg to stop.


reply via email to

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