[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

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 bistrom...@gmail.com: 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

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] 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 a

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 calls

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

2014-05-31 Thread Martin Braun
On 31 May 2014 11:57, Marcus Müller marcus.muel...@ettus.com 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

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 gnuradio/digital/ofdm_cyclic_prefixer.h. But the ofdm_cyclic_prefixer is a block.It has work function. I attached my document. #include fstream #include vector #include

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 fstream #include vector #include gnuradio/gr_complex.h #include gnuradio/fft/fft.h

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 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

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! 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 contents

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 marcus.muel...@ettus.com 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

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] call the work() method

2014-05-31 Thread xianda
Hi:br/ Thank you so much.br/ 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!br/ The easy way is use thelt;gnuradio/fft/fft.hgt; and

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 active...@gmail.com 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,