Re: [Discuss-gnuradio] Frequency discriminator using a frequency to voltage converter

2015-11-05 Thread Marcus Müller
Hi Lou, that's a pretty good application of the spectrum, I agree. One could certainly modify the freq_sink to do that, however, as it is now, the PSD calculation (based on the fft result) is done in a single VOLK kernel, 32fc_s32f_x2_power_spectral_density_32, which probably has some performance

Re: [Discuss-gnuradio] Frequency discriminator using a frequency to voltage converter

2015-11-05 Thread madengr
Could this be modified to, optionally, do the (complex) average after the FFT. That would give a coherent average assuming no samples are dropped prior to FFT. Nice for digging signals out of the noise compared to a normal spectrum analyzer type average. Lou Marcus Müller-3 wrote > Because I

Re: [Discuss-gnuradio] using shared variables in GNU Radio

2015-11-05 Thread Martin Braun
There's different ways to address this: - The channel-power-calculator can send the calculated power downstream. This can either happen as a message, or as a stream. - You could query the value from the other block, e.g. by having a reference to the block and accessing a getter (that's sometimes n

[Discuss-gnuradio] using shared variables in GNU Radio

2015-11-05 Thread Subrata Sarkar
Hi, Is it possible to share a variable between two blocks in GNU Radio such that block A modifies its value and block B reads it. Block A that modifies the value is a downstream block. I have a block called CSMA and it has a msg input port. Whenever it receives a msg, its corresponding msg handler

Re: [Discuss-gnuradio] undefined reference to file_sink_base

2015-11-05 Thread Nemanja Savic
Tried that already a few times and nothing. Is there any so called cash where cmake can mix something up. I was recently building gnuradio 3.7.8 and I think that administrator also removed all my manually installed packages and did package reset to default. On Thu, Nov 5, 2015 at 6:17 PM, Marcus M

Re: [Discuss-gnuradio] undefined reference to file_sink_base

2015-11-05 Thread Marcus Müller
Ha! good catch; after you added BLOCKS to the REQUIRED_COMPONENTS list in CMake, you might want to completely delete the build/ folder and start anew. CMake occasionally misses such changes. Best regards, Marcus On 11/05/2015 06:14 PM, Nemanja Savic wrote: > Maybe this can help somebody to help m

Re: [Discuss-gnuradio] undefined reference to file_sink_base

2015-11-05 Thread Nemanja Savic
Maybe this can help somebody to help me. So, I have my .so library installed (from the time when building was possible ;)) Now, when I run ldd on installed and built library I get following: existing: [savi_ne@ts-070046nl build]$ ldd /usr/local/lib64/libgnuradio-TMS.so linux-vdso.so.1 => (0x00

Re: [Discuss-gnuradio] undefined reference to file_sink_base

2015-11-05 Thread Marcus Müller
Hm, that really was my hope. Sorry, I'm out of ideas. On 11/05/2015 05:39 PM, Nemanja Savic wrote: > everything looks fine with that > > [savi_ne@ts-070046nl build]$ ldd lib/libgnuradio-TMS.so > linux-vdso.so.1 => (0x7ffd93fa1000) > libboost_filesystem-mt.so.5 => /usr/lib64/libboost_f

Re: [Discuss-gnuradio] undefined reference to file_sink_base

2015-11-05 Thread Nemanja Savic
everything looks fine with that [savi_ne@ts-070046nl build]$ ldd lib/libgnuradio-TMS.so linux-vdso.so.1 => (0x7ffd93fa1000) libboost_filesystem-mt.so.5 => /usr/lib64/libboost_filesystem-mt.so.5 (0x7fccb7e5f000) libboost_system-mt.so.5 => /usr/lib64/libboost_system-mt.so.5 (0x0

Re: [Discuss-gnuradio] gr-display

2015-11-05 Thread 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", line 71, in __init__ self.tab_grid_layout_0.addWidget(self._show_text_0_win, 1000,110) File "/usr/local/gnuradio/lib64

Re: [Discuss-gnuradio] undefined reference to file_sink_base

2015-11-05 Thread Marcus Müller
Hm, make sure your program really uses those; "ldd libgnuradio-TMS.so" might point to the right places. On 11/05/2015 05:21 PM, Nemanja Savic wrote: > Anything else I could try with this silly problem? I am sure 100% that > libraries are in /usr/local/lib64 > > On Thu, Nov 5, 2015 at 5:12 PM, Nema

Re: [Discuss-gnuradio] undefined reference to file_sink_base

2015-11-05 Thread Marcus Müller
Does it get better when you do blocks::file_sink_base(filename, true, false)? On 11/05/2015 05:04 PM, Nemanja Savic wrote: > This is rather strange. This module was working ok, I just didn't > build it for quite some time. > I use file_sink_base as a base class for one of my file sinks that has >

Re: [Discuss-gnuradio] undefined reference to file_sink_base

2015-11-05 Thread Nemanja Savic
Anything else I could try with this silly problem? I am sure 100% that libraries are in /usr/local/lib64 On Thu, Nov 5, 2015 at 5:12 PM, Nemanja Savic wrote: > In my gnuradio 3.6.5.1 file_sink_base constructor takes otwo arguments, > filename and bool. > > On Thu, Nov 5, 2015 at 5:06 PM, Marcus

Re: [Discuss-gnuradio] undefined reference to file_sink_base

2015-11-05 Thread Nemanja Savic
This is rather strange. This module was working ok, I just didn't build it for quite some time. I use file_sink_base as a base class for one of my file sinks that has some kind of history buffer inside. And, the structure of that block is identical as the structure of file_sink that comes with GR.

Re: [Discuss-gnuradio] undefined reference to file_sink_base

2015-11-05 Thread Nemanja Savic
In my gnuradio 3.6.5.1 file_sink_base constructor takes otwo arguments, filename and bool. On Thu, Nov 5, 2015 at 5:06 PM, Marcus Müller wrote: > Does it get better when you do blocks::file_sink_base(filename, true, > false)? > > > On 11/05/2015 05:04 PM, Nemanja Savic wrote: > > This is rather

Re: [Discuss-gnuradio] uhd_sink+uhd_source VS virtual_sink+virtual_source

2015-11-05 Thread chai E
sorry ,forget to reply the list thank you --Ekko 2015-11-05 23:15 GMT+08:00 Marcus Müller : > Hi Ekko, > > please reply to the list, not to individual people :) > > 1.i can use source block generate digita signal, > > Every block in GNU Radio is a digital block (your computer is a digital > d

Re: [Discuss-gnuradio] uhd_sink+uhd_source VS virtual_sink+virtual_source

2015-11-05 Thread Marcus Müller
Hi Ekko, please reply to the list, not to individual people :) > 1.i can use source block generate digita signal, Every block in GNU Radio is a digital block (your computer is a digital device)! > 2.i am not sure whether "chunks to symbol"block make the job of > digital-to-analog no. Digital to an

Re: [Discuss-gnuradio] undefined reference to file_sink_base

2015-11-05 Thread Marcus Müller
Hi Nemanja, file_sink_base only has a parameterless public constructor these days (from gr-blocks/include/.../file_sink_base.h) 47 protected: 48 file_sink_base(const char *filename, bool is_binary, bool append); 49 50 public: 51 file_sink_base() {} 52 ~file_sink_ba

Re: [Discuss-gnuradio] uhd_sink+uhd_source VS virtual_sink+virtual_source

2015-11-05 Thread Marcus Müller
Hi Ekko, > i connect the usrp“tx and rx pin whit a wire to imitate that no > error,so i think the ber should be zero. If you still think that, you have understood neither mine nor Marcus Leech's email; I'm afraid I can only ask you to read them again. > my problem is that if i want to use uhd_sink

Re: [Discuss-gnuradio] uhd_sink+uhd_source VS virtual_sink+virtual_source

2015-11-05 Thread chai E
hello marcus i connect the usrp“tx and rx pin whit a wire to imitate that no error,so i think the ber should be zero. my problem is that if i want to use uhd_sink and source to test this grc,is there some other work i need to do compare with the connect of virtual sink +source. this is my question

[Discuss-gnuradio] Fwd: gr-display

2015-11-05 Thread chai E
hello all i am using https://github.com/gnss-sdr/gnss-sdr[text_sink], but there is nothing show when i use text_sink this is my grc file, is there some one who konw how to use this demo another question ,i want to test the example of DTV in gnuradio ,but there is only transmitter,where i can

[Discuss-gnuradio] gr-display

2015-11-05 Thread chai E
hello all i am using https://github.com/gnss-sdr/gnss-sdr[text_sink], but there is nothing show when i use text_sink this is my grc file, is there some one who konw how to use this demo another question ,i want to test the example of DTV in gnuradio ,but there is only transmitter,where i can

[Discuss-gnuradio] undefined reference to file_sink_base

2015-11-05 Thread Nemanja Savic
Hi all guys, i have encountered a new problem which was not present before. I have my old GR module (out of tree) for years. Yesterday I wanted to change something and couldn't build it cause of the linker error. libgnuradio-TMS.so: undefined reference to `gr::blocks::file_sink_base::file_sink_ba

Re: [Discuss-gnuradio] message port declaration problem after changing to 3.7.8

2015-11-05 Thread Nemanja Savic
Hi, here is a simple photo representing my block. The block is hierarchical and consists of a few deframers. When deframers decode correct message, they are supposed to send message to db_logger who write information from the message into a database. Deframers are written in c++ while db_logger is

Re: [Discuss-gnuradio] Frequency discriminator using a frequency to voltage converter

2015-11-05 Thread Marcus Müller
Hi Larry, please answer to the list, and not to the individual people, if possible :) The quadrature demod gives you the "instantaneous" frequency between consecutive samples. Mathematically, it's conjugate multiplication of the samples with a single-sample delayed version of themselves, followed

Re: [Discuss-gnuradio] Frequency discriminator using a frequency to voltage converter

2015-11-05 Thread Marcus Müller
Hi Larry, in addition to what Kim said: You'll have to consider that what the Qt frequency sink and what a frequency to voltage converter does are pretty different things: * The freq-to-volt converter takes a signal and (ideally) gives you a reading determining the (somehow defined) stronges