LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA analog input frequency measurement

Hi,

 

I am pretty new to labview..I need to change the frequency of my look up table in accordance with an analog input signal frequency....This can be done by changing my scan rate which is calculated as follows

 

scan rate=FPGA frequency(40 Mhz)/16*fin

 

I decided 2 possibilities to implement this...

 

1)I could simply measure the frequency of the incoming analog signal from the photo detector...

Please tell me how to measure this frequency on FPGA??

 

2)I could also measure the phases of the signals and thus update the frequency.

But I dont exactly know how to do this....

 

It would be really helpful if you can help me resolve this ASAP

 

Thank You

 

 

0 Kudos
Message 1 of 3
(3,858 Views)

Hi Sunu,

 

To measure the frequency of an analog signal on FPGA, I would recommend using the Analog Period Measurement Express VI.

 

Here is the help information for it:

http://zone.ni.com/reference/en-XX/help/371599J-01/lvfpga/fpga_period_measurement/

 

It will output the number of samples per period. The inverse of this will give you the frequency of the signal per samples. Multiplying by the sampling rate will then give you the frequency with respect to time.

 

You can then use this frequency in your calculations.

Joey S.
Senior Product Manager, Software
National Instruments
Message 2 of 3
(3,831 Views)

I had a problem with this block to measure the frequency of the FPGA. Now it is working. Thank you.


@JoeySpinella 

 

0 Kudos
Message 3 of 3
(2,451 Views)