[Discuss-gnuradio] using custom signal processing module
Hi, I had the same problem and i find a temporary solution for it. When you sudo make install a folder with the same name of your module should appear on the path usr/local/include/your module name. But instead the folders name becomes MyModule. If you change its name using nautilus it works. And also you should go to /usr/local/lib/python2.6/MyModule and cut all the _init_ files and paste them into the folder your module name. After these modifications my block run succesfully. Hope this helps. Mehmet. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] using custom signal processing module
I used the tutorial on http://gnuradio.org/redmine/wiki/gnuradio/Basic_block and gr-my-blocks-template as a template folder. 2011/6/7, mehmet kabasakal 85kabasa...@gmail.com: I used the tutorial on http://gnuradio.org/redmine/wiki/gnuradio/Basic_block gr-my-blocks-template as a template folder. Mehmet. 2011/6/7, Tom Rondeau trondeau1...@gmail.com: On Tue, Jun 7, 2011 at 5:19 AM, mehmet kabasakal 85kabasa...@gmail.comwrote: Hi, I had the same problem and i find a temporary solution for it. When you sudo make install a folder with the same name of your module should appear on the path usr/local/include/your module name. But instead the folders name becomes MyModule. If you change its name using nautilus it works. And also you should go to /usr/local/lib/python2.6/MyModule and cut all the _init_ files and paste them into the folder your module name. After these modifications my block run succesfully. Hope this helps. Mehmet. That doesn't sound right. Did you use the create-gnuradio-out-of-tree-project utility? Or did you copy the gr-howto-write-a-block directory? Neither of these will produce what you experienced here. If you did it by hand, it sounds like a copy-and-paste error. Tom ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] using custom signal processing module
I used the tutorial on http://gnuradio.org/redmine/wiki/gnuradio/Basic_block gr-my-blocks-template as a template folder. Mehmet. 2011/6/7, Tom Rondeau trondeau1...@gmail.com: On Tue, Jun 7, 2011 at 5:19 AM, mehmet kabasakal 85kabasa...@gmail.comwrote: Hi, I had the same problem and i find a temporary solution for it. When you sudo make install a folder with the same name of your module should appear on the path usr/local/include/your module name. But instead the folders name becomes MyModule. If you change its name using nautilus it works. And also you should go to /usr/local/lib/python2.6/MyModule and cut all the _init_ files and paste them into the folder your module name. After these modifications my block run succesfully. Hope this helps. Mehmet. That doesn't sound right. Did you use the create-gnuradio-out-of-tree-project utility? Or did you copy the gr-howto-write-a-block directory? Neither of these will produce what you experienced here. If you did it by hand, it sounds like a copy-and-paste error. Tom ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Cumsum block on GRC
Hi Nick, I made the change you suggested and it worked, thanks a lot. Mehmet. 2011/5/7, Nick Foster n...@ettus.com: On Sat, 2011-05-07 at 15:53 +0100, Tom Rondeau wrote: On Sat, May 7, 2011 at 3:44 PM, mehmet kabasakal 85kabasa...@gmail.com wrote: Hi List, I am trying to write a block, that finds the cumulative sum of the points. But when i run the block on GRC, the output of the block becomes as in the attached figure. It wraps for a period of time. I expect it to go negatively downwards. Because i am accumulating negative values. I couldn't understand the reason. Is there something missing in the code. The c++ code of the block is attached also. Thanks for the help! Mehmet. Mehmet, It looks like it's because you are setting out[0] = 0 before entering the for loop in your work function. This will then reset the counter every time you enter work. I'm pretty sure it won't work even if you remove that call. You can't count on out[0] having any sort of reasonable value when invoking the work call. Try saving the cumulative sum in a private member variable of your class, initialize it to 0 in your constructor, and setting out[0] to that saved value when starting each work function call. --n Tom ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] GRC samp_rate question
Hi List, I am working on an energy detector on USRP1 and i use GRC to develop a model first. I need to scan some start and stop freqs. and determine if energy level is exceeded. As i search on the net, the bandwidth of the USB interface is 32MB and 16MB is used for I-Q samples respectively. If i set the samp_rate parameter = 8M on GRC, does that mean, i receive the whole 8MHz BW for a given center freq.(from fc-4M to fc+4M). Mehmet. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Creating my own gui block on GRC
Hi list, I am using grc to create my flow and at the end my final block outputs a constant signal like 1, 2, 3, 4, or 5. What i want to do is to create a gui on grc and show some textes according to these values. For ex if output is 1, i want to show A, or if it is 3, i want to show B. Something like this. I checked if i can use the existing grc blocks to use for this issue but i can not find the solution. Can you give any suggestions about it. Mehmet. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Frame Based C++ code structure question
Hi List, I am trying to write some C++ blocks that makes calculations over 2048 point frames. For ex. i need to take the 2048 point fft of the frame(contains 2048 points) and also i need the index of these points, i mean where the center frequency is (at which point). Or i need to make calculations with the phase values of the frame and accumulate these phase values then find a value for each frame. As i told, i want to make the calculations for each frame and find a value for each frame again without losing the index within 2048 points. I write some codes but i thought i lose the index. Because i should find the solutions for every 2048 points but it is not. I have to be sure especially with this. I used gr_sync_block structure with stream inputs. Then i tried to use vector inputs but can not make the code run because of the dimension errors. Can you make some suggestions about this code structure. Here is one of my codes. Mehmet. int gr_sigma_apdp_ff::work (int noutput_items, gr_vector_const_void_star input_items, gr_vector_void_star output_items) { const float *in = (const float *) input_items[0]; float *out1 = (float *) output_items[0]; float *out2 = (float *) output_items[1]; float A = 0.0; float B = 0.0; float D = 0.0; float ma = 0.0; float inNL[noutput_items]; int a = 0; int C = 2048; int count = 0; for (int i = 0; i noutput_items; i++){ ma = 0.0; for (int m = a*C; m a*C+C ; m++) { ma += in[m]/C; } inNL[i] = in[i]-ma; A = inNL[i] * inNL[i] + A; B = fabs(inNL[i]) + B; D = inNL[i] + D; count = count + 1; if (count % C == 0) { out1[i] = sqrt(A/C - (B/C * B/C)); out2[i] = sqrt(A/C - (D/C * D/C)); A = 0.0; B = 0.0; D = 0.0; a = a + 1; } else { out1[i] = 0; out2[i] = 0; } } // Tell runtime system how many output items we produced. return noutput_items; } ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] gnuradio c++ code structure question
Hi everyone, I am trying to develop a frame based structure for gnuradio block on c++. The frame size will be 2048 point and i will calculate the normalized amplitude for every frame i.e. ma = sum(every 2048 points)/2048; normalized amplitude = all 2048 points / ma; i wrote a code that gives me the desired result under work function; int gr_gama_maks_ff::work (int noutput_items, gr_vector_const_void_star input_items, gr_vector_void_star output_items) { const float *in = (const float *) input_items[0]; float *out = (float *) output_items[0]; float ma = 0.0; float acn[noutput_items], an[noutput_items]; int C = 2048; int a = 0; int count = 0; for (int i = 0; i noutput_items; i++){ ma = 0.0; for (int m = a*C; m a*C+C ; m++) { ma += in[m]/C; } an[i] = in[i]/ma; acn[i] = an[i]-1; out[i] = acn[i]*d_k; if ((i+1) % C == 0) { a = a + 1; } } As you see i didn't keep a 2048 point array, i just find the sum of 2048 points and then use it for the output (an[i]= in[i]/ma). But i couldn't figure out how this happens. I mean the while index i = 1 in the first for loop, i can reach the i+2047th sample in the second for loop. Is there a buffer for every block in gnuradio. If yes what is the size of the buffer? I hope i would explain it clear. Mehmet. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] gnuradio c++ code structure question
Hi Martin, As you guess, i use gr_sync_block. But i don't use vector input items, i mean the input of the block is streaming points. Do i still have noutput_items * 2048 buffer size? Mehmet. 2011/3/7, Martin Braun martin.br...@kit.edu: Hi Mehmet, you've omitted some crucial parts of your code. I'm guessing you've made your block a gr_sync_block. It's easiest if your input items are vectors. In that case, your input buffer (input_items) will contain noutput_items * 2048 float values. Then, just process your data on whole blocks. The operation you describe seems pretty simple. You can probably set it up with a couple of existing blocks without having to write any code at all, although your method is surely more efficient (in terms of CPU load, not development time). MB On Mon, Mar 07, 2011 at 03:56:04PM +0200, mehmet kabasakal wrote: Hi everyone, I am trying to develop a frame based structure for gnuradio block on c++. The frame size will be 2048 point and i will calculate the normalized amplitude for every frame i.e. ma = sum(every 2048 points)/2048; normalized amplitude = all 2048 points / ma; i wrote a code that gives me the desired result under work function; int gr_gama_maks_ff::work (int noutput_items, gr_vector_const_void_star input_items, gr_vector_void_star output_items) { const float *in = (const float *) input_items[0]; float *out = (float *) output_items[0]; float ma = 0.0; float acn[noutput_items], an[noutput_items]; int C = 2048; int a = 0; int count = 0; for (int i = 0; i noutput_items; i++){ ma = 0.0; for (int m = a*C; m a*C+C ; m++) { ma += in[m]/C; } an[i] = in[i]/ma; acn[i] = an[i]-1; out[i] = acn[i]*d_k; if ((i+1) % C == 0) { a = a + 1; } } As you see i didn't keep a 2048 point array, i just find the sum of 2048 points and then use it for the output (an[i]= in[i]/ma). But i couldn't figure out how this happens. I mean the while index i = 1 in the first for loop, i can reach the i+2047th sample in the second for loop. Is there a buffer for every block in gnuradio. If yes what is the size of the buffer? I hope i would explain it clear. Mehmet. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio -- Karlsruhe Institute of Technology (KIT) Communications Engineering Lab (CEL) Dipl.-Ing. Martin Braun Research Associate Kaiserstraße 12 Building 05.01 76131 Karlsruhe Phone: +49 721 608-43790 Fax: +49 721 608-46071 www.cel.kit.edu KIT -- University of the State of Baden-Württemberg and National Laboratory of the Helmholtz Association ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] USRP2 connection problem
Hi everyone, I solved the problem about the USRP2 connection. The problem was the fgpa and firmware images. My mistake was burning UDP images on this link to the SD card which are for experimental usage http://code.ettus.com/redmine/ettus/projects/public/wiki/U2binaries I changed the images to raw ethernet and everything worked fine. Thanks everyone for your help. Mehmet. 2011/1/11, mehmet kabasakal 85kabasa...@gmail.com: Hi Adrew, I used wireshark instead of tcpdump and see something on the screen but don't understand what they mean. As i read wireshark shows if we send and receive packet to/from any device.But i see that i can send and receive packets via eth0 by using ifconfig, mehmet@mehmet-PC:~$ sudo ifconfig eth0 [sudo] password for mehmet: eth0 Link encap:Ethernet HWaddr 60:eb:69:29:bb:c8 inet6 addr: fe80::62eb:69ff:fe29:bbc8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10416 errors:0 dropped:0 overruns:0 frame:0 TX packets:2654 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2112887 (2.1 MB) TX bytes:324570 (324.5 KB) Interrupt:48 Base address:0x4000 Hi Eduardo, I use HP pavilion dv6 core i7, and i checked the ethernet card it supports the gigabit ethernet. Do you have any other ideas why this could be happen? Thanks a lot. Mehmet. 2011/1/10, Andrew Rich vk4...@tech-software.net: tcpdump ? - Original Message - From: mehmet kabasakal To: discuss-gnuradio Sent: Monday, January 10, 2011 6:56 PM Subject: [Discuss-gnuradio] USRP2 connection problem Hi everyone, I am using USRP2 on ubuntu 10.10. When i try to run it with grc i got the this message, Traceback (most recent call last): File /home/mehmet/top_block.py, line 46, in module tb = top_block() File /home/mehmet/top_block.py, line 29, in __init__ self.usrp2_sink__0 = usrp2.sink_32fc() File /usr/lib/python2.6/dist-packages/gnuradio/usrp2.py, line 1137, in sink_32fc return _usrp2.sink_32fc(ifc, mac) RuntimeError: No USRPs found on interface eth0 then i run ifconfig eth0 command then i got, mehmet@mehmet-PC:~$ sudo ifconfig eth0 [sudo] password for mehmet: eth0 Link encap:Ethernet HWaddr 60:eb:69:29:bb:c8 inet6 addr: fe80::62eb:69ff:fe29:bbc8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10416 errors:0 dropped:0 overruns:0 frame:0 TX packets:2654 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2112887 (2.1 MB) TX bytes:324570 (324.5 KB) Interrupt:48 Base address:0x4000 finally i tried find_usrps but again no response, mehmet@mehmet-PC:~$ sudo find_usrps No USRP2 found. I have checked if i install sdcc compiler from synaptic package manager and it seems it is installed. I use the ethernet cable that comes with usrp2 in the package. then i changed the ethernet cable. I used the one that is for internet connection but it didn't work. The screenshot of the basic grc problem is attached. Thanks for your help. Mehmet -- ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] USRP2 connection problem
Hi Adrew, I used wireshark instead of tcpdump and see something on the screen but don't understand what they mean. As i read wireshark shows if we send and receive packet to/from any device.But i see that i can send and receive packets via eth0 by using ifconfig, meh...@mehmet-pc:~$ sudo ifconfig eth0 [sudo] password for mehmet: eth0 Link encap:Ethernet HWaddr 60:eb:69:29:bb:c8 inet6 addr: fe80::62eb:69ff:fe29:bbc8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10416 errors:0 dropped:0 overruns:0 frame:0 TX packets:2654 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2112887 (2.1 MB) TX bytes:324570 (324.5 KB) Interrupt:48 Base address:0x4000 Hi Eduardo, I use HP pavilion dv6 core i7, and i checked the ethernet card it supports the gigabit ethernet. Do you have any other ideas why this could be happen? Thanks a lot. Mehmet. 2011/1/10, Andrew Rich vk4...@tech-software.net: tcpdump ? - Original Message - From: mehmet kabasakal To: discuss-gnuradio Sent: Monday, January 10, 2011 6:56 PM Subject: [Discuss-gnuradio] USRP2 connection problem Hi everyone, I am using USRP2 on ubuntu 10.10. When i try to run it with grc i got the this message, Traceback (most recent call last): File /home/mehmet/top_block.py, line 46, in module tb = top_block() File /home/mehmet/top_block.py, line 29, in __init__ self.usrp2_sink__0 = usrp2.sink_32fc() File /usr/lib/python2.6/dist-packages/gnuradio/usrp2.py, line 1137, in sink_32fc return _usrp2.sink_32fc(ifc, mac) RuntimeError: No USRPs found on interface eth0 then i run ifconfig eth0 command then i got, meh...@mehmet-pc:~$ sudo ifconfig eth0 [sudo] password for mehmet: eth0 Link encap:Ethernet HWaddr 60:eb:69:29:bb:c8 inet6 addr: fe80::62eb:69ff:fe29:bbc8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10416 errors:0 dropped:0 overruns:0 frame:0 TX packets:2654 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2112887 (2.1 MB) TX bytes:324570 (324.5 KB) Interrupt:48 Base address:0x4000 finally i tried find_usrps but again no response, meh...@mehmet-pc:~$ sudo find_usrps No USRP2 found. I have checked if i install sdcc compiler from synaptic package manager and it seems it is installed. I use the ethernet cable that comes with usrp2 in the package. then i changed the ethernet cable. I used the one that is for internet connection but it didn't work. The screenshot of the basic grc problem is attached. Thanks for your help. Mehmet -- ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] about file source block
Hi Josh, Thanks for the answer. But my problem is not exactly about the subject you answer. To make it clear i will simply specify my problem. I set an array on matlab which includes non-integer values (like 0.001, -0.253, ...) and form a binary file by using fopen, fwrite commands then obtain a binary file (mehmet.bin). Then by using GRC File Source Block i import this file and connect it to the Scope Sink. For File Source Block ourput data type:Float, Repeat:Yes and Vector Length:1 are chosen. At the and when i execute the system i see nothing on the Scope. I want to see the array that i set on matlab. This is my problem about File Source Block. Thanks. 2010/9/16, Josh Blum j...@joshknows.com: The file source reads binary data out of a file and writes it into a gnuradio stream. So, if your data stream is floats, the file should be filled with floats, as it would be in your computer's memory. -josh On 09/16/2010 09:02 AM, mehmet kabasakal wrote: Hi everyone, I want to ask a question about the file source block on GRC. It reads the .bin files and takes them as input. But Should that .bin files be in a fixed format. I mean is there a fixed format for this block to read or does it reads any kind of .bin files. I am trying to set a .bin file on matlab and trying to read and see the output on GRC. Thanks. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] about file source block
Hi everyone, I want to ask a question about the file source block on GRC. It reads the .bin files and takes them as input. But Should that .bin files be in a fixed format. I mean is there a fixed format for this block to read or does it reads any kind of .bin files. I am trying to set a .bin file on matlab and trying to read and see the output on GRC. Thanks. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Installing Simulink_USRP_Blockset
Hi everyone, I have a USRP rev. 4 and i want to install Simulink_USRP_Blockset on http://www.cel.kit.edu/english/downloads.php . Is it possible to install this blockset for rev 4. Thanks. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] grc file source
Hi guys, I want to learn that what kind of File source block in GRC can read? For ex. can this block read the .mat files. I see that it can send .bin files but are there any other file types. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] writin oscope on python
Hi everyone, I want to see a simple cosine signal on oscope by writing a pyhton code. I am using scopesink2.scope_sink_c tool. The code is below: and I got this error message: [r...@mehmet Desktop]# python mehmet_rx.py Traceback (most recent call last): File mehmet_rx.py, line 99, in module my_top_block().run() File mehmet_rx.py, line 87, in __init__ num_inputs=0, File /usr/lib/python2.6/site-packages/gnuradio/wxgui/scopesink_gl.py, line 144, in __init__ msg_key=MSG_KEY, File /usr/lib/python2.6/site-packages/gnuradio/wxgui/scope_window.py, line 430, in __init__ wx.Panel.__init__(self, parent, style=wx.SIMPLE_BORDER) File /usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_windows.py, line 68, in __init__ _windows_.Panel_swiginit(self,_windows_.new_Panel(*args, **kwargs)) TypeError: in method 'new_Panel', expected argument 1 of type 'wxWindow *' The python code: from gnuradio import gr, usrp from gnuradio.wxgui import stdgui2, scopesink2, fftsink2, form import wx class my_top_block(gr.top_block): def __init__(self): gr.top_block.__init__(self) sample_rate = 32 ampl = 1000 decimation = 200 frequency = 17 gain = 1000 #create the usrp source #0 represents the USRP number (in case you have multiple USRPs) u = usrp.source_c(0) #Set the decimation u.set_decim_rate(decimation) #Automatically choose the sub device #(this can be done manually, see below) subdev_spec = usrp.pick_rx_subdevice(u) #Set the mux u.set_mux(usrp.determine_rx_mux_value(u, subdev_spec)) #get the sub-device subdev = usrp.selected_subdev(u, subdev_spec) #Select receive antenna ('TX/RX' or 'RX2'): flex boards only! subdev.select_rx_antenna('TX/RX') #Set the gain subdev.set_gain(gain) #Tune the center frequency u.tune(0, subdev, frequency) self.wxgui_scopesink2_0 = scopesink2.scope_sink_c( self, title=Scope Plot, sample_rate=32, v_scale=0, t_scale=0, ac_couple=False, xy_mode=False, num_inputs=1, ) self.connect((u, 0), (self.wxgui_scopesink2_0, 0)) if __name__ == '__main__': try: my_top_block().run() except KeyboardInterrupt: pass ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Re: Import Question
Thanks Josh, I will try to understand the generated python code after execution of grc file. One more thing, while i was searching on the net, i found http://www.joshknows.com/gnuradio this link. In the USRP Sink part, the script #Tune the center frequency u.tune(subdev._which, subdev, frequency) gives attribute error because of ._which but when i try which() it doesn't give any error. I couldn't understand the reason. 2010/7/9, Josh Blum j...@joshknows.com: I recommend that you try the gnuradio-companion and learn from the generated code. Also, it will drastically simplify the creation of usrp source and sink block for you. http://gnuradio.org/redmine/wiki/gnuradio/GNURadioCompanion -Josh On 07/09/2010 05:18 AM, mehmet kabasakal wrote: Hi guys, To make the previous question more clear i want to give an example. İ am trying to produce a cosine wave and send it via USRP. Then i used the functions gr.sig_source_c (sample_rate, gr.GR_COS_WAVE, 1, ampl) dst=usrp.sink_c(which=0, interp_rate=400, nchan=1, mux=0x98, fusb_block_size=0, fusb_nblocks=0, fpga_filename=, firmware_filename=) But i don't know how to set the carrier frequecy. I have found some functions to set it but this time i couldn't find which module should i import. 2010/7/9, mehmet kabasakal85kabasa...@gmail.com: Hi guys, I am trying to write simple Pyhton applications by using the blocks in the gnuradio. But i don't know which module should i import to use the related function. Is there any document about it. On net i found that gr module should be imported nearly for all applications but sometimes it doesn't sufficient. Thanks. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Import Question
Hi guys, I am trying to write simple Pyhton applications by using the blocks in the gnuradio. But i don't know which module should i import to use the related function. Is there any document about it. On net i found that gr module should be imported nearly for all applications but sometimes it doesn't sufficient. Thanks. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Re: Import Question
Hi guys, To make the previous question more clear i want to give an example. İ am trying to produce a cosine wave and send it via USRP. Then i used the functions gr.sig_source_c (sample_rate, gr.GR_COS_WAVE, 1, ampl) dst=usrp.sink_c(which=0, interp_rate=400, nchan=1, mux=0x98, fusb_block_size=0, fusb_nblocks=0, fpga_filename=, firmware_filename=) But i don't know how to set the carrier frequecy. I have found some functions to set it but this time i couldn't find which module should i import. 2010/7/9, mehmet kabasakal 85kabasa...@gmail.com: Hi guys, I am trying to write simple Pyhton applications by using the blocks in the gnuradio. But i don't know which module should i import to use the related function. Is there any document about it. On net i found that gr module should be imported nearly for all applications but sometimes it doesn't sufficient. Thanks. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Adjusting the Tx Rx switching
Hi everyone, I want to adjust the switching time of Tx and Rx and FLEX 1800 daughterboard. USRP just checks the FPGA FIFO if it is full or empty then decides to transmit or receive. But i couldn't find anything about how to adjust the Tx and Rx switching time. I mean is it possible to transmit for a determined amount of time and then receive for a determined amount of time. Thanks. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] synchronizing the daughterboard LOs
Hi everyone, I want to synchronize the daughterboard LOs for an application. I have a Rev 4 USRP board and FLEX1800 daughterboard then i followed the instructions on http://gnuradio.org/redmine/wiki/1/USRPClockingNotes . At this page it is given that Recent boards don't need these mods, only early RFX-boards. What does recent boards mean? There is a date written on the DBoard (3.10.2006). My DB is a recent board? THanks guys. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] gnuradio companion problem
Hi everyone, I am trying to run grc from the terminal. But when i type grc i got: meh...@mehmet-laptop:~$ grc Traceback (most recent call last): File /usr/bin/grc, line 48, in module from gnuradio.grc.python.Platform import Platform File /usr/lib/python2.6/dist-packages/gnuradio/grc/python/Platform.py, line 22, in module from .. base.Platform import Platform as _Platform File /usr/lib/python2.6/dist-packages/gnuradio/grc/base/Platform.py, line 22, in module from .. base import ParseXML, odict File /usr/lib/python2.6/dist-packages/gnuradio/grc/base/ParseXML.py, line 20, in module from lxml import etree File lxml.etree.pyx, line 188, in lxml.etree (src/lxml/lxml.etree.c:124917) LookupError: unknown encoding: ASCII Error in sys.excepthook: Traceback (most recent call last): File /usr/lib/python2.6/dist-packages/apport_python_hook.py, line 38, in apport_excepthook from apport.packaging_impl import impl as packaging File /usr/lib/python2.6/dist-packages/apport/__init__.py, line 1, in module from apport.report import Report File /usr/lib/python2.6/dist-packages/apport/report.py, line 20, in module from problem_report import ProblemReport File /usr/lib/python2.6/dist-packages/problem_report.py, line 17, in module from email.Encoders import encode_base64 File /usr/lib/python2.6/email/__init__.py, line 47, in module sys.setrecursionlimit(1500) NameError: name 'sys' is not defined Original exception was: Traceback (most recent call last): File /usr/bin/grc, line 48, in module from gnuradio.grc.python.Platform import Platform File /usr/lib/python2.6/dist-packages/gnuradio/grc/python/Platform.py, line 22, in module from .. base.Platform import Platform as _Platform File /usr/lib/python2.6/dist-packages/gnuradio/grc/base/Platform.py, line 22, in module from .. base import ParseXML, odict File /usr/lib/python2.6/dist-packages/gnuradio/grc/base/ParseXML.py, line 20, in module from lxml import etree File lxml.etree.pyx, line 188, in lxml.etree (src/lxml/lxml.etree.c:124917) LookupError: unknown encoding: ASCII Do you have any idea about this? I use gnuradio 3.2.2 and ubuntu 9.04 ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Re: hello world ex. grc problem
Hi Josh, The output of python -c import lxml.etree; print lxml.etree.__version__ is 2.1.5 as yours. I've uninstalled the gnuradio and reinstalled it again then the error has been changed when i write grc on the command line. It is as below; File /usr/lib/python2.6/email/__init__.py, line 82, in __getattr__ return getattr(mod, name) File /usr/lib/python2.6/email/__init__.py, line 82, in __getattr__ return getattr(mod, name) RuntimeError: maximum recursion depth exceeded Original exception was: Traceback (most recent call last): File /usr/local/bin/grc, line 33, in module from gnuradio.grc import VERSION ImportError: cannot import name VERSION meh...@mehmet-laptop:~$ Do you have any idea about it? Thanks. 2009/11/13 Josh Blum j...@joshknows.com Original exception was: Traceback (most recent call last): File /usr/bin/grc, line 48, in module from gnuradio.grc.python.Platform import Platform File /usr/lib/python2.6/dist-packages/gnuradio/grc/python/Platform.py, line 22, in module from .. base.Platform import Platform as _Platform File /usr/lib/python2.6/dist-packages/gnuradio/grc/base/Platform.py, line 22, in module from .. base import ParseXML, odict File /usr/lib/python2.6/dist-packages/gnuradio/grc/base/ParseXML.py, line 20, in module from lxml import etree File lxml.etree.pyx, line 188, in lxml.etree (src/lxml/lxml.etree.c:124917) LookupError: unknown encoding: ASCII meh...@mehmet-laptop:~/Belgeler/gnuradio-3.2.2$ Do you have any idea why i got this error? I have never seen this error. It usually just works. Did you by some chance try to install lxml from source? Perhaps there is a conflict between multiple lxml installs. What does the following output: python -c import lxml.etree; print lxml.etree.__version__ I get 2.1.5 on ubuntu 9.04 Hope that helps. -Josh ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Re: hello world ex. grc problem
Hi josh, I've installed all the packages at http://gnuradio.org/trac/wiki/GNURadioCompanion page.(i.e: python 2.6, python-lxml, cheetah, python-gtk) and also i have installed the libxml2 and libxslt libraries. But still I got the following error; File /usr/lib/python2.6/email/__init__.py, line 82, in __getattr__ return getattr(mod, name) File /usr/lib/python2.6/email/__init__.py, line 82, in __getattr__ return getattr(mod, name) RuntimeError: maximum recursion depth exceeded Original exception was: Traceback (most recent call last): File /usr/bin/grc, line 48, in module from gnuradio.grc.python.Platform import Platform File /usr/lib/python2.6/dist-packages/gnuradio/grc/python/Platform.py, line 22, in module from .. base.Platform import Platform as _Platform File /usr/lib/python2.6/dist-packages/gnuradio/grc/base/Platform.py, line 22, in module from .. base import ParseXML, odict File /usr/lib/python2.6/dist-packages/gnuradio/grc/base/ParseXML.py, line 20, in module from lxml import etree File lxml.etree.pyx, line 188, in lxml.etree (src/lxml/lxml.etree.c:124917) LookupError: unknown encoding: ASCII meh...@mehmet-laptop:~/Belgeler/gnuradio-3.2.2$ Do you have any idea why i got this error? Thanks. 2009/11/12 Josh Blum j...@joshknows.com File /usr/lib/python2.6/dist-packages/gnuradio/grc/base/ParseXML.py, line 20, in module from lxml import etree File lxml.etree.pyx, line 188, in lxml.etree (src/lxml/lxml.etree.c:124917) LookupError: unknown encoding: ASCII did you install the python-lxml package? ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] hello world ex. grc problem
Hi everyone, I am newbie both at gnuradio and linux environment and I am currently working on a project about usrp. First of all I've installed the gnuradio-3.2.2 and ubuntu 9.04. Then i tried to run the dial tone example. When i run dial tone example on http://www.gnu.org/software/gnuradio/doc/exploring-gnuradio.html on the terminal there is nothing wrong, i mean it doesn't give any error messages but i can't hear anything from my computer's speakers. Do i have to do any extra process to execute the code? My second question is about the grc. I wanted to use this gui to try some examples. But when i write the terminal grc i got this messages; meh...@mehmet-laptop:~$ grc Generic Colouriser 1.1 grc [options] command [args] Options: -e --stderrredirect stderr. If this option is selected, do not automatically redirect stdout -s --stdoutredirect stdout, even if -e is selected -c name --config=nameuse name as configuration file for grcat --colour=word word is one of: on, off, auto Is there something wrong with it? How can i open the grc GUI ? Thanks ... ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Re: hello world ex. grc problem
About my second question: Now I noticed that I have another program with a name of generic colouriser and when i type grc on the terminal i run this program. Now i uninstall generic colouriser and then type grc again but now i got this message: File /usr/lib/python2.6/email/__init__.py, line 82, in __getattr__ return getattr(mod, name) File /usr/lib/python2.6/email/__init__.py, line 82, in __getattr__ return getattr(mod, name) RuntimeError: maximum recursion depth exceeded Original exception was: Traceback (most recent call last): File /usr/bin/grc, line 48, in module from gnuradio.grc.python.Platform import Platform File /usr/lib/python2.6/dist-packages/gnuradio/grc/python/Platform.py, line 22, in module from .. base.Platform import Platform as _Platform File /usr/lib/python2.6/dist-packages/gnuradio/grc/base/Platform.py, line 22, in module from .. base import ParseXML, odict File /usr/lib/python2.6/dist-packages/gnuradio/grc/base/ParseXML.py, line 20, in module from lxml import etree File lxml.etree.pyx, line 188, in lxml.etree (src/lxml/lxml.etree.c:124917) LookupError: unknown encoding: ASCII The second question in the first mail is invalid! Thanks... 2009/11/11 mehmet kabasakal 85kabasa...@gmail.com Hi everyone, I am newbie both at gnuradio and linux environment and I am currently working on a project about usrp. First of all I've installed the gnuradio-3.2.2 and ubuntu 9.04. Then i tried to run the dial tone example. When i run dial tone example on http://www.gnu.org/software/gnuradio/doc/exploring-gnuradio.html on the terminal there is nothing wrong, i mean it doesn't give any error messages but i can't hear anything from my computer's speakers. Do i have to do any extra process to execute the code? My second question is about the grc. I wanted to use this gui to try some examples. But when i write the terminal grc i got this messages; meh...@mehmet-laptop:~$ grc Generic Colouriser 1.1 grc [options] command [args] Options: -e --stderrredirect stderr. If this option is selected, do not automatically redirect stdout -s --stdoutredirect stdout, even if -e is selected -c name --config=nameuse name as configuration file for grcat --colour=word word is one of: on, off, auto Is there something wrong with it? How can i open the grc GUI ? Thanks ... ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio