Re: [Discuss-gnuradio] Weird install problem, GR 3.7.8.1

2015-11-10 Thread John Coppens
On Tue, 10 Nov 2015 22:03:42 -0300 John Coppens wrote: > I'd like to have a go at debugging this, but due to gnuradio's size I have > no real idea how to start. Can anyone give me a pointer? > Investigating a little, I found that the strange directory structure seems to come from a call to 'se

Re: [Discuss-gnuradio] Python Script Stalls

2015-11-10 Thread Johnathan Corgan
tb.stop(), then tb.wait() On Tue, Nov 10, 2015 at 6:39 PM, Richard Bell wrote: > I've written a python script that instantiates a top_block.py file (no > GUI), sets the parameters, runs until 100 block errors are detected, stops > the simulation and starts the process over with a new instantiati

[Discuss-gnuradio] Python Script Stalls

2015-11-10 Thread Richard Bell
I've written a python script that instantiates a top_block.py file (no GUI), sets the parameters, runs until 100 block errors are detected, stops the simulation and starts the process over with a new instantiation, etc.. The problem I have is that I randomly (as far as I can tell) have a problem w

[Discuss-gnuradio] Weird install problem, GR 3.7.8.1

2015-11-10 Thread John Coppens
Hello all. I've compiled and installed the last version on my home PC and on the notebook. Both under Linux Slackware (mostly version 14.1, some updates to -current). Both run gcc 4.9.x, Python 2.7.10. Both are AMD64 systems. On the PC all is well, but on the notebook I have some strange issues w

Re: [Discuss-gnuradio] Timer

2015-11-10 Thread Roee Bar
Thanks Nathan, that was a great advice. Since I use python, it's very easy when using the 'threading' module: def start_timer(self): self.timer = threading.Timer(seconds, self.callback) # Setup a Timer thread self.timer.start() def callback(): # Do something if timeout def msg_handler

Re: [Discuss-gnuradio] question about the qa_ofdm_sync_sc_cfb.py

2015-11-10 Thread Martin Braun
I did the maths a while ago, and I'm confident the numbers are OK, but it's always possible mistakes were made. Feel free to investigate. The test cases would be a good place to go for confirmation. Cheers, Martin On 09.11.2015 18:11, w xd wrote: > Hi, > > Thank you so much. > > I hav

Re: [Discuss-gnuradio] Timer

2015-11-10 Thread Martin Braun
You can look at the message strobe block for inspiration; it's written in C++ but the concepts translate. M On 10.11.2015 14:36, West, Nathan wrote: > Spin off a thread inside your block that counts and calls the > appropriate function. Boost bind might help abstract away a specific > function. >

Re: [Discuss-gnuradio] the block “complex to Arg” in gnuradio

2015-11-10 Thread West, Nathan
I think it's more of a testament to how good Intel (and modern) processors are at branching. An adventurous soul is welcome to try putting that table lookup in to an avx2 protokernel with the new gather instructions. I'll reward with beer next time I see the author. If you write a generic table lo

Re: [Discuss-gnuradio] Timer

2015-11-10 Thread West, Nathan
Spin off a thread inside your block that counts and calls the appropriate function. Boost bind might help abstract away a specific function. On Tuesday, November 10, 2015, Roee Bar wrote: > Hello, > > I have written a OOT module (in python) that receives and send PMT > messages according to some

Re: [Discuss-gnuradio] the block “complex to Arg” in gnuradio

2015-11-10 Thread Marcus Müller
Hi Johannes, Hi xd, complex_to_arg uses GNU Radio's fast_atan2f function, which is an approximation [1]. Between the 255 values of the lookup table, it uses linear interpolation, hence your 0.4 error factor. As Johannes said, that's not really surprising for a look up table-based approach. I do t

[Discuss-gnuradio] Timer

2015-11-10 Thread Roee Bar
Hello, I have written a OOT module (in python) that receives and send PMT messages according to some state machine. However, I need a timer so that the block will transmit a message after some timeout. I.e., if nothing happens for x seconds, a function is called. Is there any built-in mecha

Re: [Discuss-gnuradio] Decoding constellation (0, 1-1) using gnuradio

2015-11-10 Thread abhinav narain
On Tue, Nov 10, 2015 at 12:45 PM, Marcus Müller wrote: > Hi Abhinav, > > sorry, I might just be tired right now, but I don't understand this > sentence: > > On 10.11.2015 21:18, abhinav narain wrote: > > I have now fallen to doing PPM where I map {0,1} bits to {101,11} > > symbols on the transmit

Re: [Discuss-gnuradio] Decoding constellation (0, 1-1) using gnuradio

2015-11-10 Thread Marcus Müller
Hi Abhinav, sorry, I might just be tired right now, but I don't understand this sentence: On 10.11.2015 21:18, abhinav narain wrote: > I have now fallen to doing PPM where I map {0,1} bits to {101,11} > symbols on the transmitter side, where 0 in 101 is equivalent to x 1x1 > as I don't transmit a

Re: [Discuss-gnuradio] GRC Building Block Internals

2015-11-10 Thread West, Nathan
Hi John, There's some python embedded in the GRC xml. The block is a python command: 'from gnuradio import analog' The block is another python command: 'analog.wfm_rcv(...)' that uses the analog module that was imported from gnuradio. That python code can come from two places: native py

[Discuss-gnuradio] GRC Building Block Internals

2015-11-10 Thread John B. Wood
Hello, everyone, and I trust most of you will indulge a GRC newbie. After reading some of the online Gnuradio docs, I'm puzzled by what's inside building blocks that appear in the GRC block tree panel. If I select "WBFM Receive" from the "Modulators" tab, for example, I know this defined by t

Re: [Discuss-gnuradio] gr-display

2015-11-10 Thread Ron Economos
I forgot to answer your DTV question. At this time, there is no GNU Radio based receiver for DVB-S2 (or DVB-T2). One issue that stands in the way is developing a software LDPC decoder with sufficient performance (ideally, at least 50 Mbps for DVB-T2 and even more for DVB-S2). Therefore, all th

Re: [Discuss-gnuradio] gr-display

2015-11-10 Thread chai E
hello volker thank you ,i have solve the problem with you reply. --Ekko 2015-11-06 0:35 GMT+08:00 Volker Schroer : > First, if you run the generated top_block.py you see > > Traceback (most recent call last): > File "./top_block.py", line 99, in > tb = top_block() > File "./top_block.py

Re: [Discuss-gnuradio] the block “complex to Arg” in gnuradio

2015-11-10 Thread Johannes Demel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Could you extend a test case for this block with Python? This might reveal issues with the implementation more easily. Also, others might benefit from it. For your specific problem, I guess the GR block result is as close as it gets for a LUT-base

[Discuss-gnuradio] the block “complex to Arg” in gnuradio

2015-11-10 Thread w xd
Hi all, Thank you very much in advance. I find the result of the block "complex to Arg" is same to the result in matlab most of the time,while sometimes the results is different from the result in matlab. For example, a=1.646236600879293e+03 + 8.043715071772

Re: [Discuss-gnuradio] Decoding constellation (0, 1-1) using gnuradio

2015-11-10 Thread Marcus Müller
Hi Abhinav, I must admit that I completely lost track of this; could you maybe really do a sketch of what your trying to transmit something like: x = 0-filling sample 1 = data 1 0 = data 0 xx1xx0xx0xx0xx1 or so? Best regards, Marcus On 10.11.2015 07:18, abhinav narain wrote: > Hi Marcus, othe