Re: How to convert complex float file to complex int 16 in Gnuradio For USRP input...

2022-07-05 Thread Marcus Müller
again, if your conversion yields all-zero values, you're not scaling 
appropriately.


Best regards,
Marcus

On 05/07/2022 12.24, sp wrote:
Thanks, This means when I send a complex signal I see it on spectrum, I 
too send a converted signal and I see a converted signal on the spectrum.
Signals are not the same... I expect that signals in two formats (format 
int16 or float 32 ) be the same on a spectrum.

I only have a signal in two formats...


The fact that your signal is all zeros seems to be a problem with
your signal; have you maybe scaled it incorrectly, so that it
(correctly) gets rounded to all 0?

Can you explain how should I scale a float signal according to a block 
in Gnuradio?



I don't know what "don't acceptable" would mean in this context. The 
USRP
accepts any int16.

The fact that your signal is all zeros seems to be a problem
with your signal; have you maybe scaled it incorrectly, so that
it (correctly) gets rounded to all 0?




smime.p7s
Description: S/MIME Cryptographic Signature


Re: How to convert complex float file to complex int 16 in Gnuradio For USRP input...

2022-07-05 Thread sp
Thanks, This means when I send a complex signal I see it on spectrum, I too
send a converted signal and I see a converted signal on the spectrum.
Signals are not the same... I expect that signals in two formats (format
int16 or float 32 ) be the same on a spectrum.
I only have a signal in two formats...


The fact that your signal is all zeros seems to be a problem with your
> signal; have you maybe scaled it incorrectly, so that it (correctly) gets
> rounded to all 0?

Can you explain how should I scale a float signal according to a block in
Gnuradio?


I don't know what "don't acceptable" would mean in this context. The USRP
>> accepts any int16.
>>
>>
>> The fact that your signal is all zeros seems to be a problem with your
>> signal; have you maybe scaled it incorrectly, so that it (correctly)
>> gets rounded to all 0?
>>
>>
>>


Re: How to convert complex float file to complex int 16 in Gnuradio For USRP input...

2022-07-05 Thread Marcus Müller

I don't know what "don't acceptable" would mean in this context. The USRP 
accepts any int16.

The fact that your signal is all zeros seems to be a problem with your signal; have you 
maybe scaled it incorrectly, so that it (correctly) gets rounded to all 0?



Best regards,
Marcus
On 05.07.22 08:24, sp wrote:
Thanks but when I used complex blocks I see that it converts all complex files to 0 hex 
byte...So my converted signal is not an acceptable signal for sending with USRPI used 
even float to int and so block but my data is not acceptable when I send signal with USRP

original complex file and converted file can not the same signal on the 
spectrum...
Screenshot from 2022-07-05 10-50-03.png
Screenshot from 2022-07-05 10-50-52.png


On Thu, Jun 30, 2022 at 7:05 PM sp h > wrote:


In Gnuradio there are different types that you can see in the below 
screenshot?

How to convert complex float file to complex int 16 in Gnuradio For USRP 
input I need
to convert complex float to complex int...
, My question is how can I do this action? Thanks in advance
Screenshot from 2022-06-30 19-01-27.png





Re: How to convert complex float file to complex int 16 in Gnuradio For USRP input...

2022-07-01 Thread Johannes Demel

Hi,

If you target USRPs, their driver does the complex float 32 to complex 
int 16 conversion. No need for you to do this "manually". If you want to 
use complex int 16 in your flowgraph, there should be converters. VOLK 
includes kernels to convert between these data types as well.
In GRC search for e.g. "complex" and you should have a short list of 
blocks where one should fit your needs.


Cheers
Johannes


On 30.06.22 16:35, sp h wrote:
In Gnuradio there are different types that you can see in the below 
screenshot?


How to convert complex float file to complex int 16 in Gnuradio For USRP 
input I need to convert complex float to complex int...

, My question is how can I do this action? Thanks in advance
Screenshot from 2022-06-30 19-01-27.png




How to convert complex float file to complex int 16 in Gnuradio For USRP input...

2022-06-30 Thread sp h
In Gnuradio there are different types that you can see in the below
screenshot?

How to convert complex float file to complex int 16 in Gnuradio For USRP
input I need to convert complex float to complex int...
, My question is how can I do this action? Thanks in advance
[image: Screenshot from 2022-06-30 19-01-27.png]