# Spurious samples in data set?

**URL:** <https://www.ruby-forum.com/t/spurious-samples-in-data-set/119356>\
**Category:** GNU Radio\
**Created:** [November 6, 2007, 11:48am UTC](https://www.ruby-forum.com/t/spurious-samples-in-data-set/119356 "2007-11-06T11:48:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aadil\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@Aadil\_V](https://www.ruby-forum.com/u/Aadil_V)\
**Post date:** [November 6, 2007, 11:48am UTC](https://www.ruby-forum.com/t/spurious-samples-in-data-set/119356/1 "2007-11-06T11:48:38Z")

</div>

Hi

Attached is code i’ve used to write a signal to file and subsequently to  
plot the samples.  
additionally i’ve attached the plot.

Can anyone tell me what may be causing the huge spike at the beginning  
of  
the data set?

thanks,

Aadil

---

<div class="post-metadata">

**Author:** ![Aadil\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@Aadil\_V](https://www.ruby-forum.com/u/Aadil_V)\
**Post date:** [November 6, 2007, 12:09pm UTC](https://www.ruby-forum.com/t/spurious-samples-in-data-set/119356/2 "2007-11-06T12:09:10Z")

</div>

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

Please don’t send attachments to the GNU radio mailing list.

It’s a known issue that the USRP sends some spurious large amplitude  
samples right after it is enabled. You can safely ignore them.

- -Dan

Aadil V. wrote:

> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](http://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.6 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iD8DBQFHMEtPy9GYuuMoUJ4RAtfhAKCFRqkynXeqpy5hnjDjcN0ng4QFAgCfdIZ0  
/lZ8rLac2o4PpbiwjsQEoEY=  
=0Hxx  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![Aadil\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@Aadil\_V](https://www.ruby-forum.com/u/Aadil_V)\
**Post date:** [November 6, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/spurious-samples-in-data-set/119356/3 "2007-11-06T19:22:28Z")

</div>

On Tue, Nov 06, 2007 at 12:46:02PM +0200, Aadil V. wrote:

> Aadil

Aadil,

There seem to be some issues with your acquisition code:

(1) you’re thowing away the the quadrature component of the complex  
baseband signal from the USRP.

(2) you should be be using fg.start() / fg.wait(), not fg.stop().  
It would be easier if you just used fg.run()

Eric

---

<div class="post-metadata">

**Author:** ![Aadil\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@Aadil\_V](https://www.ruby-forum.com/u/Aadil_V)\
**Post date:** [November 7, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/spurious-samples-in-data-set/119356/4 "2007-11-07T16:51:59Z")

</div>

On Tue, Nov 06, 2007 at 11:45:59PM +0200, Aadil V. wrote:

> Hi,
> 
> Thanks for taking the time to answer my questions.
> 
> I’d like to seek clarity on your first point, how am I losing the quadrature  
> component?

You’re using gr.complex\_to\_float, and then only using one of the two  
output streams. You’re keeping the real stream and discarding the  
imaginary stream.

> I’m afraid i’m still working out exactly how some of these functions operate  
> and I may be missing something trivial.
