[Discuss-gnuradio] sample and hold Ctrl Input

2009-05-11 Thread feldmaus
Hi All, i am using the Sample and Hold Element, but there seems to be some needed conversion for the Ctrl Input. my source uses a vector which is 4 times bigger than the ctrl input sink. My source send only 0 or 1, so it should be no problem to lessen this vector. I didn't find any examples. Is t

Re: [Discuss-gnuradio] sample and hold

2008-07-14 Thread Eric Blossom
On Fri, Jul 11, 2008 at 06:32:12PM +0200, Pepito31 Pepito31 wrote: > Hello, > I would like to construct a sample and hold function with : > src_data=(0,)*4095,1 > > delay2=gr.vector_source_b(src_data,True) > sample_and_hold = gr.sample_and_hold_ff() > > I would like that that sample and hol

[Discuss-gnuradio] sample and hold

2008-07-11 Thread Pepito31 Pepito31
Hello, I would like to construct a sample and hold function with : src_data=(0,)*4095,1 delay2=gr.vector_source_b(src_data,True) sample_and_hold = gr.sample_and_hold_ff() I would like that that sample and hold had a duration of 4096 cycles (4095 "0" followed by a "1"). But constructing my v