Hi,

These are programming questions for your application, unrelated to uhd.
Your language is also a bit strange. Let me explain:

1) You take the output signal from your usrp and if it is larger than a
threshold value you store their index to a vector.
I imagine that the threshold is some kind of amplitute. To compare it to
your samples, you need to find the corresponding amplitude: log10(hypot(Q,
I))
Where Q is the real component of your sample, and I the imaginary. You can
store that value to a new vector. Or simpler you can compare Q^2 +
I^2,since log10 and sqrt do not add anything useful.To read from usrp use:
uhd_rx_streamer_recv

On Wed, Jan 25, 2023 at 9:49 AM <seckinonc...@gmail.com> wrote:

> Hello USRP Users,
>
> I am new to UHD C++ API. I have some questions about the application that
> I planned to develop. I have N320 and I got the signal from one channel and
> keep it in a vector as “buff”. As you may know form examples.
>
> 1) How to take the envelope of the signal, then assign a threshold value
> and keep the index of the sample which is greater than threshold value in a
> vector?
>
> 2) After getting pulse’s TOA(time of arrival) and TOD(Time of Departure),
> how to take the fft and keep the frequency shift in a vector?
>
> 3) Buff get 2000 samples in one cycle in my configuration. How to arrange
> the fft size and buff size to have a real time operations? Can processing
> delay be fixed for each cycle?
> _______________________________________________
> USRP-users mailing list -- usrp-users@lists.ettus.com
> To unsubscribe send an email to usrp-users-le...@lists.ettus.com
>
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to