[USRP-users] sc8 to fc32 type conversion

Marcus D. Leech mleech at ripnet.com
Thu Nov 23 21:33:13 EST 2017


On 11/23/2017 08:14 PM, Wahhab Albazrqaoe via USRP-users wrote:
> Hi,
> I have an application to read samples from a USRP2 and we use the 
> following wire and cpu formats
> 1- cpu_format = "sc8"
> 2- wire_format = "sc8"
>
> Now we have samples in a file (with "sc8" format). My question is how 
> to convert such samples to fc32 (i.e. complex float)? complex float is 
> our ultimate goal.
>
> We do this (save as sc8) because the hard drive (on the host) doesn't 
> support high data rates.
>
> Any comments are appreciated..
>
>
> _______________________________________________
> USRP-users mailing list
> USRP-users at lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
Consider them as signed 8-bit, twos-complement quantities, I followed by Q.

The conventional l thing to do is to normalize into {-1.0,+1.0} by 
dividing the value by 128.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20171123/6d64cac0/attachment-0002.html>


More information about the USRP-users mailing list