Re: [Discuss-gnuradio] adding python block to gnuradio

2013-03-14 Thread Nemanja Savic
file for GRC and finaly do make install, and you will be able to use it. On Thu, Mar 14, 2013 at 10:27 AM, Serhat BOYNUKALIN serhatboynuka...@gmail.com wrote: it is possible to add qpsk as a block to grc just using python code? 2013/3/14 Nemanja Savic vlasi...@gmail.com You simply open

Re: [Discuss-gnuradio] adding python block to gnuradio

2013-03-14 Thread Nemanja Savic
Ok, but just a little. On Thu, Mar 14, 2013 at 10:47 AM, Serhat BOYNUKALIN serhatboynuka...@gmail.com wrote: ok, i will try a little and i am gonna return with results. 2013/3/14 Nemanja Savic vlasi...@gmail.com In the terminal transcript you provided, you created an block without

Re: [Discuss-gnuradio] How to feed the file source block?

2013-03-10 Thread Nemanja Savic
You should provide file with sample values inside, and it depends on what kind of signal have you recorded, complex, real, etc.. Since you are collecting some signals, i suppose you are using file sink block in order to store data to file, so all you have to do is to provide that file to file

Re: [Discuss-gnuradio] callback function called twice

2013-02-28 Thread Nemanja Savic
Was any nonsense in previous post? On Wed, Feb 27, 2013 at 2:16 PM, Nemanja Savic vlasi...@gmail.com wrote: Hi again GNURADIOers, I have a set member function which is also used as a callback from GRC. It looks like this: void test_file_sink::set_sensitivity(double milisecond

[Discuss-gnuradio] callback function called twice

2013-02-27 Thread Nemanja Savic
Hi again GNURADIOers, I have a set member function which is also used as a callback from GRC. It looks like this: void test_file_sink::set_sensitivity(double milisecond) { d_n_samples = (unsigned int)(milisecond*d_sample_rate/1000.0)*d_itemsize; printf(\nd_n_samples: %d\n, d_n_samples);

Re: [Discuss-gnuradio] AttributeError: 'module' object has no attribute 'square_ff'.

2013-02-26 Thread Nemanja Savic
It might be that you have some version mismatch, or i don't know how to call that. Check inside of your _swig.i and see whether this MAGIC thig is above include statement. That was problem in my case. Gr_modtool generated something like this: %include test_pkdt.h GR_SWIG_BLOCK_MAGIC(test,pkdt);

[Discuss-gnuradio] test runs twice

2013-02-26 Thread Nemanja Savic
Hi GNURADIOers, I wanted to tell you that test for my block runs twice. Namely, I designed block based on tagged_file_sink, which is able to store some additional samples before true tag. I designed also test, but when I run it, it simply executes twice. at the bottom of my qa file you can find

Re: [Discuss-gnuradio] Setting up clock synchronization blocks

2013-02-21 Thread Nemanja Savic
preamble detection, but then it starts to stuff some bits which make message incorrect. Best Nemanja On Thu, Feb 21, 2013 at 2:36 PM, Martin Braun (CEL) martin.br...@kit.eduwrote: On Thu, Feb 21, 2013 at 02:10:24PM +0100, Nemanja Savic wrote: Preamble is indeed long. On the figure I attached

Re: [Discuss-gnuradio] access code detection threshold in benchmark tx/rx scripts

2013-02-15 Thread Nemanja Savic
Inside receive path you have packet_demod block, which is hier block written i npython. Inside you can find that they assign positive value. Nemanja On Fri, Feb 15, 2013 at 3:02 AM, Nowlan, Sean sean.now...@gtri.gatech.eduwrote: I'm trying to understand the benchmark receive path. The access

Re: [Discuss-gnuradio] looking for the c++ source for WBFM Receive Block

2013-02-09 Thread Nemanja Savic
I think wbfm is designed as hier block, and consists of fm demodulator, deemephasis, and audio filter. You can find this block in blks2_impl folder. Nemanja On Sat, Feb 9, 2013 at 6:19 AM, adream adream...@gmail.com wrote: hello, Can anyone tell me the c++ source for WBFM Receive Block?

Re: [Discuss-gnuradio] Problem loading Python block

2013-02-01 Thread Nemanja Savic
. There are no errors. Could the problem be no inputs and no outputs? Or maybe something else? Best and thanks Nemanja On Fri, Feb 1, 2013 at 8:45 AM, Nemanja Savic vlasi...@gmail.com wrote: Fortunately it was becuse path in my .bashrc file. it was eithout backslash at the begining. So everything works now

Re: [Discuss-gnuradio] Problem loading Python block

2013-02-01 Thread Nemanja Savic
self.connect(self) in top_block. This block design style i picked up from grExtras module. Maybe they use different something, and their block is called even when it has no inputs/outputs. Best Nemanja On Fri, Feb 1, 2013 at 4:30 PM, Nemanja Savic vlasi...@gmail.com wrote: I am more than willing to try

Re: [Discuss-gnuradio] make test Failed

2013-01-31 Thread Nemanja Savic
It may be that you didn't make test script? And you should do make before make test. On Thu, Jan 31, 2013 at 10:27 AM, Mohammed Ramadan eng_mo7med2...@yahoo.com wrote: i follow gr_modtool for Making block in gnuradio, when i reached to make test step i have test failed

Re: [Discuss-gnuradio] Problem loading Python block

2013-01-31 Thread Nemanja Savic
at 11:34 AM, Martin Braun (CEL) martin.br...@kit.eduwrote: Just install 3.6.3, you should be fine. Otherwise, manually browse through /usr/local and kill everything that looks GNU Radio-ish. MB On Wed, Jan 30, 2013 at 04:13:20PM +0100, Nemanja Savic wrote: In order to find which version I am

Re: [Discuss-gnuradio] Problem loading Python block

2013-01-31 Thread Nemanja Savic
The problem was bad LD_LIBRARY_PATH. Can anybody explain: why with LD_LIBRARY_PATH=/usr/bin:usr/local/lib64:usr/local/lib, GRC won't run, and with LD_LIBRARY_PATH=/usr/local/lib64. it works? On Thu, Jan 31, 2013 at 2:37 PM, Nemanja Savic vlasi...@gmail.com wrote: I deleted everything

Re: [Discuss-gnuradio] Problem loading Python block

2013-01-30 Thread Nemanja Savic
gnuradio? Best On Wed, Jan 30, 2013 at 1:36 PM, Martin Braun (CEL) martin.br...@kit.eduwrote: On Wed, Jan 30, 2013 at 01:23:19PM +0100, Nemanja Savic wrote: Today I have tried again, but this time i used block as is designed by gr_modtool. It wont wen throught test, bu it reports

Re: [Discuss-gnuradio] Problem loading Python block

2013-01-29 Thread Nemanja Savic
Guys, i am not able to load gr.basic_block and make signal processing block in Python. Simplu, there is no binding within gnuradio/gr for that class. It works perfectly for gr.hier)block2 class. What might be the problem? Thanks On Tue, Jan 29, 2013 at 12:57 PM, Nemanja Savic vlasi

Re: [Discuss-gnuradio] help about making .dat file for file source

2013-01-29 Thread Nemanja Savic
Just calculate samples in whatever way you want and store them to files, using python, C, or any other language. Here is part of my code for making samples of complex sin wave in python: for i in range(n_samples): sine[i] = math.sin(2*math.pi*i/n_samples) cosine[i] =

Re: [Discuss-gnuradio] Problem loading Python block

2013-01-29 Thread Nemanja Savic
gnuradio.org: http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules#Tutorial-3-Writing-a-signal-processing-block-in-Python Hope this helps. Thanks On Tue, Jan 29, 2013 at 2:16 PM, Tom Rondeau t...@trondeau.com wrote: On Tue, Jan 29, 2013 at 7:40 AM, Nemanja Savic vlasi

Re: [Discuss-gnuradio] Problem loading Python block

2013-01-28 Thread Nemanja Savic
|#set $deciminterp = ', +decimation+' 41 |#set $deciminterp = '' 42 |#else ^ 43 |#end if 44 |from gnuradio import gr 45 | Any suggestions how to ovecome this except using older version which worked perfectly? On Fri, Jan 25, 2013 at 9:22 PM, Nemanja Savic vlasi...@gmail.com wrote

Re: [Discuss-gnuradio] Problem loading Python block

2013-01-28 Thread Nemanja Savic
, just stays active without giving any results. Can somebody provide some explanation? On Mon, Jan 28, 2013 at 10:28 AM, Nemanja Savic vlasi...@gmail.com wrote: I installed new version of gr_modtool script and it won't work. The error is following: [savi_ne@ts-070046nl gr-test

Re: [Discuss-gnuradio] Problem loading Python block

2013-01-28 Thread Nemanja Savic
. Perhaps you want the new PDU to stream blocks? MB On Mon, Jan 28, 2013 at 04:42:04PM +0100, Nemanja Savic wrote: Since I don't know why gr_modtool doesn't work for me, I took the older working version and made very simple hier block in order to understand messages flow in gnuradio

[Discuss-gnuradio] Problem loading Python block

2013-01-25 Thread Nemanja Savic
Hi all, today i was trying to make hierarchical signal processing block in Python. I started with gr_modtool script, and configured it for hierpython block type. My idea was to design block similar to packet framer, so inside of the new block, I connected binary slicer and Framer sink. I have

Re: [Discuss-gnuradio] Problem loading Python block

2013-01-25 Thread Nemanja Savic
changes in GNU Radio). MB On Fri, Jan 25, 2013 at 05:05:56PM +0100, Nemanja Savic wrote: Hi all, today i was trying to make hierarchical signal processing block in Python. I started with gr_modtool script, and configured it for hierpython block type. My idea was to design block

[Discuss-gnuradio] Hier signal processing block in Python

2013-01-24 Thread Nemanja Savic
Hi all, Can somebody explain me a bit the difference between blocks written in python in the way presented on the website and blocks like packet decoder, packet encoder, gfsk modulator, etc. The latter blocks are written also in Python, but they are different than the previous. Particularly I

Re: [Discuss-gnuradio] Hier signal processing block in Python

2013-01-24 Thread Nemanja Savic
sounds like block which produces messages (that's what i was thinking at first glance, but maybe cause I am not native speaker)? Cheers On Thu, Jan 24, 2013 at 7:25 PM, Josh Blum j...@ettus.com wrote: On 01/24/2013 10:20 AM, Nemanja Savic wrote: Hi all, Can somebody explain me a bit

Re: [Discuss-gnuradio] Data slicer

2013-01-22 Thread Nemanja Savic
The problem of freezing scope sink was due to different sample rates between demodulator output and synchronization block output. On Mon, Jan 21, 2013 at 4:54 PM, Nemanja Savic vlasi...@gmail.com wrote: Hi guys, I am having problem with configuring clock synchronization block. I have

Re: [Discuss-gnuradio] Data slicer

2013-01-21 Thread Nemanja Savic
, Nemanja Savic wrote: Any suggestion guys? On Wed, Dec 19, 2012 at 11:18 AM, nexy_sm vlasi...@gmail.com wrote: Hi all, can somebody of you guys suggest me the best example to realize how is data slicers written in C++, or some similar block, where i have to convert analog signal at the output

Re: [Discuss-gnuradio] Data slicer

2013-01-02 Thread Nemanja Savic
Any suggestion guys? On Wed, Dec 19, 2012 at 11:18 AM, nexy_sm vlasi...@gmail.com wrote: Hi all, can somebody of you guys suggest me the best example to realize how is data slicers written in C++, or some similar block, where i have to convert analog signal at the output of demodulator do

Re: [Discuss-gnuradio] cannot make new signal processing block

2012-10-09 Thread Nemanja Savic
Hi all, in fact, I was following instructions from http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html And the problem was bad reference to the PKG_CONFIG_PATH. I see that in the instructions you sent me and inistructions that I was following, building folders are different.

Re: [Discuss-gnuradio] Controlled file sink

2012-09-13 Thread Nemanja Savic
Ok, thank you, I will take a look. On Thu, Sep 13, 2012 at 4:41 PM, Martin Braun (CEL) martin.br...@kit.eduwrote: Hi nexy_sm, I'm pretty sure gnuradio-core/src/examples/tags/uhd_burst_detector.py does something close to what you want. At least, it should give you a good idea how to proceed.

[Discuss-gnuradio] cannot find USRP1 device on RHEL6

2012-09-07 Thread Nemanja Savic
Hi all, I am trying for quite some time to make my USRP1 device work on RHEL6. GRC works well, but when I start uhd_find devices i got this: [savi_ne@klm ~]$ uhd_find_devices linux; GNU C++ version 4.4.6 20120305 (Red Hat 4.4.6-4); Boost_104100; UHD_003.004.003-221-g9d6f9492 No UHD Devices

<    1   2   3