Delay line

Dear Sir
I created a C++ sync block and inserted

out[i]=in[i-100]
I wanted to get 100th earliest sample continuously.
It worked. But I wanted to know will this correct when it connected to a
source continuously.
Thanks
Neil

On 02.02.2014 14:14, MHMND Herath wrote:

Dear Sir
I created a C++ sync block and inserted

out[i]=in[i-100]

I wanted to get 100th earliest sample continuously.
It worked. But I wanted to know will this correct when it connected to a
source continuously.
Thanks
Neil

You probably want to use the blocks.delay() block here.

MB

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, it will.
The GNU Radio scheduler calls your block’s work() function whenever it
needs new data.

Anyway, this is a very basic principle of GR; I recommend working
through the “creating an OOT module” tutorial, it’s really great!

Greetings,
Marcus

On 02.02.2014 14:14, MHMND Herath wrote:

mailing list [email protected]
Discuss-gnuradio Info Page

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS7tEKAAoJEAFxB7BbsDrLjg4H/2phRKUCP37odl9RodwMhP80
ggsL2qnU/sW1FZZ0cTKi4Re6PCBYF5BS0G4J6QkRXyQrEKcpyrmQMtTbh5vfxpkt
GHSXb6Q60CRI2/gsyN+LMi97t3f43Np3oEEJJtab5GFnRqw5DupykYbut68bkUBu
ObWN+y7Ua0Rgy5W8i/23lCt0CSasaL+xIujPZC+HzEtHoVx9E7vk0ecKdFci85aC
R/nTlOi8AUpJ4hZYdp26vIlYQ4p/bJr4aljPTcjkEosJoGR7OWzD/ZVcDHpwFKEV
tiuVlBpKqFs02gI+i/e/ZECKFX52pEzhjPJnkAiNrTza5dYgAT7EQ8yuAoBl94Q=
=3dH7
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Forgot to mention: You must call the set_history() function accordingly!

On 03.02.2014 00:13, Marcus M. wrote:

_______________________________________________ Discuss-gnuradio
mailing list [email protected]
Discuss-gnuradio Info Page

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS7tIjAAoJEAFxB7BbsDrLU5YIAJBn1zv7EaM8EvaVoDD6Yfvg
C/1UE5MDSMGMqXY9NDhD8Dcgvdu8AxmVYLyktzsoK5QdUbPw9pxc7uQd0f70bMBf
g7ylzo0j0ttwzIX3GYenU0nH16U6tnK+olRljSZPLx3N/2WcsQCd6FGWpzuPBQKs
9VSr5pAn4tmkKVTo2Sac8i5V22LYPflmkc4Ir6fwj8QXKU044NHLRNaBY6QGGzgp
0/nCkhH10+5SBo0MIuIIPtc64aFDRweM6RX3flkuh79l3vk0ZX1wrbUEM31U3CDM
G9Sp1BAoH8knFo1E0OO8VQVpkEN4Mie9oar6B5IbM8NsyMisy9nbYm4C8lxvL+g=
=cxdK
-----END PGP SIGNATURE-----