discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Using the dqpsk modulator


From: Karim El Defrawy
Subject: Re: [Discuss-gnuradio] Using the dqpsk modulator
Date: Wed, 15 Apr 2009 14:18:42 +0100
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

Thanks a lot for the feedback. I got it to work eventually.



Eric Blossom wrote:
On Tue, Apr 14, 2009 at 04:03:13AM -0700, karim wrote:
Eric Blossom wrote:
On Thu, Apr 09, 2009 at 09:46:43AM -0700, karim wrote:
Hi,
I am trying to use the dqpsk modulator block to modulate some data and then take the output and separate it to real and imag. This is the code, it runs but the sinks are empty and have no data. What am I doing wrong?
You're printing the contents of the vector sinks in your
initialization code, before the graph has started running.

Try printing their contents after my_top_block().run() returns.

Eric

I added a function to print the sinks after I call my_top_block().run()

But the sinks are still empty. I also tried directing the output of the qpsk modulator to a file and it's also empty (the code below).


You may want to spend some time with the most excellent Python 2.X
tutorial:  http://www.python.org/doc

You are creating two instances of my_top_block(), calling run() on the
first one and calling print_data() on the second.

Try this instead:

if __name__ == '__main__':
    try:
        tb = my_top_block()
        tb.run()
        tb.print_data()
    except KeyboardInterrupt:
        pass


Eric





reply via email to

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