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

2014-06-02 Thread Pengyu Zhang
Hi Activecat, Thanks for providing the flowgraph_01.grc example. Now I understand that how to set sample rate of a customized block. For others, sample rate of a customized block can be initialized in the make() function of the block. Details of setting the sample rate can be found in Activecat's

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] 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] 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] sampling rate of a customized signal source

2014-05-30 Thread Activecat
Hi Pengyu, There are few considerations: On Sat, May 31, 2014 at 4:19 AM, Pengyu Zhang wrote: > Hi All, > How to determine the sampling rate of a customized signal source? > > I designed a customized signal source which should output two 1ms pulses > every 10ms. If I do not know the sampling ra

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

2014-05-30 Thread Pengyu Zhang
Hi All, How to determine the sampling rate of a customized signal source? I designed a customized signal source which should output two 1ms pulses every 10ms. If I do not know the sampling rate of the customized module, I do not know how many elements I should put into the out* buffer for generat