Re: [Discuss-gnuradio] sampling rate of a customized signal source

2014-05-31 Thread Activecat
On Sat, May 31, 2014 at 11:47 PM, Activecat wrote: > I've created a sample for you at https://github.com/activecat/gr-test1 > You could run the flowgraph found in the "examples" directory. > Try to change the samp_rate of the flowgraph from 32kHz to different > values (64kHz, 200kHrz etc). > You

Re: [Discuss-gnuradio] sampling rate of a customized signal source

2014-05-31 Thread Activecat
On Sat, May 31, 2014 at 11:03 PM, Pengyu Zhang wrote: > Hi Activecat, > > Thanks for your detailed examples. I will try set_output_multiple() and > tell you my user experiences :) > > I still have a question which was posted at the beginning of my previous > email. How to configure the "Sample Ra

Re: [Discuss-gnuradio] Idea for gr-modtool

2014-05-31 Thread Michael Dickens
Thoughts on my proposal, below? - MLD On May 27, 2014, at 10:33 AM, Michael Dickens wrote: Maybe something more along the lines of: When GR is installed, create a "${prefix}/etc/gnuradio/install.cfg" file that contains what GR CMake found, in a file that's easily loadable by CMake. Then in th

Re: [Discuss-gnuradio] sampling rate of a customized signal source

2014-05-31 Thread Pengyu Zhang
Hi Activecat, Thanks for your detailed examples. I will try set_output_multiple() and tell you my user experiences :) I still have a question which was posted at the beginning of my previous email. How to configure the "Sample Rate" (which is samp_rate) as one of the variables of my custom block?

Re: [Discuss-gnuradio] run a top block within a block!

2014-05-31 Thread Activecat
On Sat, May 31, 2014 at 5:53 PM, Mostafa Alizadeh wrote: > Hi Activecat, > I wanna change both block parameters and their connections also adding or > removing some blocks. > This is interesting if it's possible to build a flowgraph within the > *work* function of a block which allows me to chang

Re: [Discuss-gnuradio] call the work() method

2014-05-31 Thread Marcus Müller
GRC. You get 1 USRP sink, but it will have 2 independent inputs. On 31.05.2014 15:22, xianda wrote: > Hi > Thank you so much for your patient instructions. > Yes ,I know the "UHD:USRP Sink" can specifies two USRP addresses.But the > symbol i try to transmit to the usrp is different. > Th

Re: [Discuss-gnuradio] call the work() method

2014-05-31 Thread xianda
Hi: Thank you so much. What I want to do is that read symbols from file and perform fft and insert cp and then transmit to the usrp.Just as the "fft" and "OFDM Cyclic Prefixer" do! The easy way is use the and .But as y

Re: [Discuss-gnuradio] call the work() method

2014-05-31 Thread xianda
Hi Thank you so much for your patient instructions. Yes ,I know the "UHD:USRP Sink" can specifies two USRP addresses.But the symbol i try to transmit to the usrp is different. They may be should in two flow graph. [file source 1] --> [ (I)FFT ] --> [ cyclic prefixer ] --> [ USRP sink 1]

Re: [Discuss-gnuradio] Dynamically changing input index of Selector block.

2014-05-31 Thread Activecat
On Sat, May 31, 2014 at 5:37 PM, Marcus Müller wrote: > Problem being is that as soon as the head block signals "done", the > flowgraph might come to a halt, effectively breaking the skip head > subgraph; > Thanks for highlighting this. Now I recall that the Head block return -1 when it is done

Re: [Discuss-gnuradio] call the work() method

2014-05-31 Thread Marcus Müller
Hi! The gr-uhd USRP sink can represent multiple USRPs at once. If you have a recent GNU Radio version, in gnuradio-companion your "UHD: USRP Sink" block will have a "Documentation" tab. There is an example that specifies two USRP addresses. This will automatically enable you to transmit the conten

Re: [Discuss-gnuradio] call the work() method

2014-05-31 Thread xianda
Hi: Thank you so much for your kindly reply. Sorry for my poor English. The reason why i directly write the c++ code is that I want to use the uhd to control my two usrps send simultaneously. The aim i want to reach is that read symbol from file and perform ifft and insert cp

Re: [Discuss-gnuradio] call the work() method

2014-05-31 Thread Marcus Müller
Hi Xianda, some of your emails are really hard to read due to your email client writing non-standard-compliant HTML mail. Could you disable HTML/multimedia mail? > What I want to do is that read symbols from file and perform fft and insert > cp and then transmit to the usrp. ok, thanks for clar

Re: [Discuss-gnuradio] call the work() method

2014-05-31 Thread Marcus Müller
Hi Xianda, > I just want to write c++ code to realize ("fft" block+"OFDM Cyclic Prefixer"). Sorry, I still did not understand. I only understand your C++, so here's my comments: The code you posted has really nothing to do with gr::block; gr::fft:fft_complex is *not* a gr::block, and has no work

Re: [Discuss-gnuradio] call the work() method

2014-05-31 Thread xianda
Hi: Thank you so much. I just want to write c++ code to realize ("fft" block+"OFDM Cyclic Prefixer"). And I attached my code which just realize ifft but the "OFDM Cyclic Prefixer" has it's work function. #include #include #include #include #include std::vector *> buff1(64);//read data std::v

Re: [Discuss-gnuradio] call the work() method

2014-05-31 Thread xianda
Hi: Thank you so much. For example,I write a simple c++ program which can use the "gnuradio/fft/fft.h".But i also want to use . But the ofdm_cyclic_prefixer is a block.It has work function. I attached my document. #include #include #include #include #include std::vector *> buff1(64);//read

Re: [Discuss-gnuradio] call the work() method

2014-05-31 Thread Martin Braun
On 31 May 2014 11:57, "Marcus Müller" wrote: > > Hi Xianda, > > >> I know every block should have it's work or general_work function.And i know it's used by scheduler For the record, a block that only uses message passing doesn't need a work function - not that that's what you're looking

Re: [Discuss-gnuradio] call the work() method

2014-05-31 Thread Marcus Müller
Hi Xianda, > I know every block should have it's work or general_work > function.And i know it's used by scheduler. Right! > Now I want to write my c++ code just call work function.Is right to > do it? I hope I understand you correctly: You want to write a C++ program that call

Re: [Discuss-gnuradio] sampling rate of a customized signal source

2014-05-31 Thread Marcus Müller
Hi Pengyu, Activecat! These are very good considerations! I just wanted to add, since this comes up rather frequently, that in digital signal processing like GNU Radio, there is no "factual" sampling rate. So if you "calculate" a signal, it's frequency can only be measured by the number of samples

Re: [Discuss-gnuradio] Dynamically changing input index of Selector block.

2014-05-31 Thread Marcus Müller
Problem being is that as soon as the head block signals "done", the flowgraph might come to a halt, effectively breaking the skip head subgraph; how many samples are still produced after head is done depends on timing and buffer size... I think that's why Mike recommended the "M in N", so you only

Re: [Discuss-gnuradio] Unable to log in usrpe 110 to get access to gnuradio on screen?

2014-05-31 Thread Wafa Elhajhmida
thank you, In fact, it works on OTG usb port. Best regards, Wafa HAJ HMIDA 2014-05-28 17:46 GMT+02:00 Nick Foster : > Wafa, > > Try using a USB hub for the mouse instead of plugging it directly into the > E100. E100 is picky about USB and doesn't support USB1.1 devices directly > connected to

[Discuss-gnuradio] call the work() method

2014-05-31 Thread xianda
Hi all: I know every block should have it's work or general_work function.And i know it's used by scheduler. Now I want to write my c++ code just call work function.Is right to do it? If ok,can someone explain how to call work function? Thanks. Best regards