Re: [Discuss-gnuradio] Sine wave of only 3 cycles

2014-01-31 Thread Tom Rondeau
On Thu, Jan 30, 2014 at 10:22 PM, Activecat active...@gmail.com wrote: Dear Sirs, But, another problem arisen. There is a WX GUI Scope Sink in the middle of the flow-graph to plot the instantaneous reading. When the data stream stop by the Head Block, says, at time=t1, the WX GUI Scope Sink

[Discuss-gnuradio] Sine wave of only 3 cycles

2014-01-30 Thread Activecat
Dear Sir, A block of Signal Source (Sine) generates sine wave continuously. How to make it just generates 3 wave-cycle and then stop generating immediately. At the end of the flow-graph there is a File Sink. This captures data for offline processing. Regards, active...@gmail.com

Re: [Discuss-gnuradio] Sine wave of only 3 cycles

2014-01-30 Thread Felix W.
Hi, you can use a Head block to make the sample stream stop after a given number of samples. Just calculate how many samples there will be in three cycles and set the Head block's parameter accordingly. Greetings Felix 2014-01-30 Activecat active...@gmail.com: Dear Sir, A block of Signal

Re: [Discuss-gnuradio] Sine wave of only 3 cycles

2014-01-30 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Also, to do basic mathematical tasks you don't have to rely on GNU Radio, which is a fine signal processing framework but not so much a math environment. If you want to have a three period sine signal, the python is short #import numpy as np f_sin

Re: [Discuss-gnuradio] Sine wave of only 3 cycles

2014-01-30 Thread Activecat
Dear Sirs, Thank you very much. The head block solve my problem precisely. Note: The flow graph consists of some other blocks at the middle. Regards, activecat. On Thu, Jan 30, 2014 at 8:18 PM, Marcus Müller mar...@hostalia.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Also,

Re: [Discuss-gnuradio] Sine wave of only 3 cycles

2014-01-30 Thread Activecat
Dear Sirs, But, another problem arisen. There is a WX GUI Scope Sink in the middle of the flow-graph to plot the instantaneous reading. When the data stream stop by the Head Block, says, at time=t1, the WX GUI Scope Sink starts to show zero reading. The question is, how to see the plot between