---------- Forwarded message ----------
From: Justin Bracken <scourc...@gmail.com>
Date: Wednesday, September 29, 2010
Subject: Same File Size
To: Eric Blossom <e...@comsec.com>


Are the samples in the files synced? I.e. The sample at index 1 in
file1 is recorded at the same time as the sample at index 1 in file2?

In which case file length is irrelevant.

On Sep 29, 2010, at 4:20 PM, Eric Blossom <e...@comsec.com> wrote:

> On Wed, Sep 29, 2010 at 04:14:18PM -0400, Justin Bracken wrote:
>> Hello All,
>>
>> I am expecting to see a similiar file size in a simple test file that im
>> running and I don't get that. Is there something Im missing?
>>
>> USRP2->FileSink
>> SignalSource->Throttle->FileSink
>>
>> I have checked obvious things. The USRP2 block is set to a decimation of
>> 400. Given the 100MS/s rate of the USRP2 I expect the stream to be 250e3
>> MS/s. So I set the overall sample rate to 250e3. I have also set the
>> datatypes of all the blocks to floats. The Throttle is set to 250e3.
>>
>> If it matters the  signal source is set to a saw tooth,1Hz.
>>
>> Im more interested in knowing that samples read back out of the files are
>> synchronized. So I guess it doesn't matter if they are the same length if
>> all this mean is that I need to trim the files to the same length.
>>
>> Thanks,
>> Justin
>
> If you want a particular number of samples in a file, etc.,
> use gr.head.
>
> Generally you SHOULD NOT be using throttle.
>
> throttle causes so much confusion, I'm of the opinion that we should
> remove it from the code base.
>
> Eric

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to