This is Yufeng. I have a more simpler question on Python, do you know
which codes can I use to generate a fixed length of random 0 and 1s,
and how to modulate them in PSK, do you have any idea about this?
Thanks!
On Mon, Feb 9, 2009 at 5:11 AM, Bruhtesfa E. [email protected]
wrote:
You can write your own block if you aren’t able to find something that
you
can plug in from gnuradio. There is a source gr.sig_source_x which
generates
square pulses, which you can modify to suit your requirements. The
actual
period of the waveform coming out of the USRP will depend on the length
of
the sequence and what your interpolation setting is. However, that is
something that you can work out.
I have the same doubt. I want to generate a pulse (with a duty cycle
less than 50%) and I do not know how to do it.
I saw gr.sig_source_x but this only generate pulses at 50% duty cycle.
I tried to multiply several squares pulses at different frequencies and
it works, I get a pulse of 12.5% duty cycle for example but it is
semi-random since all signal generators are not coherent.
Please Can somebody help me to generate a pulse signal which I can
change the pulse width?
Thanks,
Jorge.
Karthik-28 wrote:
Also,what filter do i need to apply before connecting the pulse source
Discuss-gnuradio mailing list
something that you can work out.
semi-random since all signal generators are not coherent.
Please Can somebody help me to generate a pulse signal which I can
change the pulse width?
If you just want to generate a periodic waveform and your sample
rate/clock rate is an integer, you can use the vector source block (on
repeat) with the following vector for one complete cycle of the clock
waveform:
(lambda n, d, a: [a if i < d*n else 0 for i in
range(n)])(samp_rate/clk_rate, duty, ampl)
Otherwise, i suggest making a custom block in c++ or python.
I have the same doubt. I want to generate a pulse (with a duty cycle
less than 50%) and I do not know how to do it.
I saw gr.sig_source_x but this only generate pulses at 50% duty cicle.
I tried to multiply several squares pulses at different frequencies and
it works, I get a pulse of 12.5% duty cicle for example but it is
semi-random since all signal generators are not coherent.
Please Can somebody help me to generate a pulse signal which I can
change the pulse width?
Thanks,
Jorge.
Karthik wrote:
On Mon, Feb 9, 2009 at 2:11 AM, Bruhtesfa E. [email protected]wrote:
You can write your own block if you aren’t able to find something that
you
can plug in from gnuradio. There is a source gr.sig_source_x which
generates
square pulses, which you can modify to suit your requirements. The
actual
period of the waveform coming out of the USRP will depend on the length
of
the sequence and what your interpolation setting is. However, that is
something that you can work out.