Forum: GNU Radio delay line

2d0f6bc46e0515bc4d82688718650b25?d=identicon&s=25 MHMND Herath (Guest)
on 2014-02-02 14:06
(Received via mailing list)
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
B4ffbc711addde4c649b1ed526df6157?d=identicon&s=25 Martin Braun (Guest)
on 2014-02-02 14:07
(Received via mailing list)
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
7d89a70df32c0ae27c1235016f9e5441?d=identicon&s=25 Marcus Müller (Guest)
on 2014-02-03 00:14
(Received via mailing list)
-----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 Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
-----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-----
7d89a70df32c0ae27c1235016f9e5441?d=identicon&s=25 Marcus Müller (Guest)
on 2014-02-03 00:20
(Received via mailing list)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

On 03.02.2014 00:13, Marcus Mller wrote:
>
>
>
> _______________________________________________ Discuss-gnuradio
> mailing list Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
-----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-----
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.