# Capture finite number of samples

**URL:** <https://www.ruby-forum.com/t/capture-finite-number-of-samples/244832>\
**Category:** GNU Radio\
**Created:** [June 22, 2016, 5:25pm UTC](https://www.ruby-forum.com/t/capture-finite-number-of-samples/244832 "2016-06-22T17:25:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [June 22, 2016, 5:25pm UTC](https://www.ruby-forum.com/t/capture-finite-number-of-samples/244832/1 "2016-06-22T17:25:30Z")

</div>

Hi everybody.

I’m working in gnu-radio and I must to save a finite number of samples,  
to do that I’m using a file sink block, and it do it fine, but I don’t  
understand why the samples are saving at the end of the signal, knowing  
that I’m using a trigger time to take the samples.  
Is there any documentation about it?, I need to understand how works the  
file sink block, how it save the samples when I have a complex signal.

Thanks for your help.
