discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Configure UHD source and File sink to save intege


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Configure UHD source and File sink to save integers
Date: Mon, 04 Mar 2013 18:11:16 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3


On 03/04/2013 03:07 PM, mepard wrote:
> 
> On Mar 4, 2013, at 2:43 PM, Josh Blum <address@hidden> wrote:
>>
>> On 03/04/2013 02:36 PM, mepard wrote:
>>> I'd like to feed a File Sink from a UHD Source with 4 channels -- 2
>>> motherboards, each with A:A A:B subdev specs. To cut down on the file
>>> size, I'd like to record integers instead of floating point.
>>>
>>> Which data type should I tell the UHD source to produce? Which type
>>> should I tell the File Sink to record? What conversions do I need in
>>> between? I'd like to stay in GRC, if possible.
>>>
>>
>> Sure thing. You can set the file sink to integer (int32), and either set
>> the usrp source block to vita word32 or sc16 type (both are 32 bits per
>> sample).
>>
>> Thats still 4 streams, not sure if you are interleaving them or using 4
>> file sinks.
>>
> 
> One thing I forgot is that I'd like to convert complex<sint16> to a single 
> sint16 with just the "real" part, like I can convert complex<float> to single 
> float. It doesn't look like there is the equivalent of Complex To Real for 
> integers.
> 
> Is there an alternative to converting to floating point and back?

you could vector to streams, and null sink the second stream.

* 1 input stream of vec length 2 and item size short
* 2 output streams of item size short

-josh

> 
> -Marc
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]