Taking the average of all datas may works :) Airprobe uses this method to calculate the phase difference.
Best, Zhenhua 2014-03-05 19:09 GMT+08:00 MITUL VEKARIYA <10bec...@nirmauni.ac.in>: > Hi, > Thanks for reply. > I want to measure phase between reference signal and signal coming from > DUT(Device Under Test). It may possible that due to non-linear > characteristic of the device, there are changes in frequency and amplitude > of signal. In this case the method you mentioned will give correct phase? > > Thanks > Mitul Vekariya > > > On Wed, Mar 5, 2014 at 7:46 AM, zhenhua han <hzhua...@gmail.com> wrote: > >> Hi, >> >> > How can we measure phase between two sine waves using FPGA? >> >> Supposing the two sine waves have the same frequency. >> For two discrete complex signals, v1 and v2. we can compute the phase >> difference as follow. >> >> v3 = v1 * conj(v2) >> phase diff = arctan(imag(v3) , real(v3)) >> >> (conj() means conjugate) >> >> Best, >> Zhenhua >> >> >> >> 2014-03-05 1:36 GMT+08:00 MITUL VEKARIYA <10bec...@nirmauni.ac.in>: >> >>> Hi >>> I am Mitul Vekariya <https://github.com/mitul93> - final year student >>> of Electronics and Communication (ECE) branch at Nirma University, India. >>> I am very interested in mentioned >>> project<http://gnuradio.org/redmine/projects/gnuradio/wiki/GSoC> >>> . >>> I like digital signal processing, Embedded Linux, Digital Communication >>> and RF designing. >>> I didn't work on any USRP devices, but I have experience of FPGA >>> programming using VHDL and LabVIEW. I am familiar with SDR fundamentals and >>> GNURadio. >>> >>> >>> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- >>> >>> Regarding Project, I've found one good document >>> <http://www2.ee.cityu.edu.hk/~sklmmw/apmtt/B2BJan14/day1/Agilent_VNA_AN_Basics_5965-7917E.PDF>from >>> agilent. >>> >>> Summary of what I understood from that document: >>> 1) Using usrp b210 I can generate pure tone sine wave as test signal >>> 2) I will connect DUT ( device under test ) with external components to >>> the usrp and measure transmitted and reflected signal >>> 3) The amplitude and phase of the received signal will lead to different >>> parameters >>> >>> How can we measure phase between two sine waves using FPGA? The method >>> of zero crossing is advised or not? >>> Please give you inputs on this project. >>> >>> Thanks >>> Mitul Vekariya >>> Institute of Technology >>> Nirma University >>> India >>> >>> _______________________________________________ >>> Discuss-gnuradio mailing list >>> Discuss-gnuradio@gnu.org >>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio >>> >>> >> >
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio