[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Using the dqpsk modulator
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] Using the dqpsk modulator |
Date: |
Wed, 15 Apr 2009 13:27:21 -0700 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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
- Re: [Discuss-gnuradio] [benchmark_ofdm], (continued)
- Re: [Discuss-gnuradio] [benchmark_ofdm], Martin Braun, 2009/04/08
- [Discuss-gnuradio] QPSK basic modulator, karim, 2009/04/08
- Re: [Discuss-gnuradio] QPSK basic modulator, Ed Criscuolo, 2009/04/08
- Re: [Discuss-gnuradio] QPSK basic modulator, Karim El Defrawy, 2009/04/08
- [Discuss-gnuradio] Using the dqpsk modulator, karim, 2009/04/09
- Re: [Discuss-gnuradio] Using the dqpsk modulator, Eric Blossom, 2009/04/09
- Re: [Discuss-gnuradio] Using the dqpsk modulator, Maduike, Dumezie, 2009/04/14
- Re: [Discuss-gnuradio] Using the dqpsk modulator, karim, 2009/04/14
- Re: [Discuss-gnuradio] Using the dqpsk modulator,
Eric Blossom <=
- Re: [Discuss-gnuradio] Using the dqpsk modulator, Karim El Defrawy, 2009/04/15
Re: [Discuss-gnuradio] [benchmark_ofdm], rita pfc, 2009/04/13