Jump to content

FPGA analog frequency measurement


Recommended Posts

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

 

Link to comment

Hi Sunayana,

 

In the LabVIEW example finder there is a counter example. It is called "Edge Counter.lvproj" Frequency would be the number of counted edges per unit of time. The example should provide a starting point.

 

However, you will still need to convert the analog signal to digital using some sort of crossing detector. Hard to say how to do this without knowing your resources.

 

Kind regards,

 

Rick Wagner

Link to comment

I have a fpga, a pxi system and a daq.........My idea is to change the refresh rate 

 

I have to actually change therefresh rate with changes in input frequency frequency....My refresh
rate is calculated as follows.

scan rate=40Mhz/16*fin
for example for an incoming frequency of 10 khz, my scan rate would be 250
If suppose the incoming frequency is changed, I want the scan rate to be 
changed automatically so that the frequency of the look up table is updated.

 
How should this be done?
Link to comment

I don't know if I fully understand what you are talking about.  You have a look up table so I get the feeling you aren't reading an analog channel but instead are using that table as an output but your topic clearly states "measurement"

 

Please also try to use terms that are more appropriate.  The "Refresh Rate" can mean many things.  If instead you said your output rate, or sampling rate then it would be more clear what is going on.

 

We will need more information to understand what you are doing.  Post some code of what you are doing as well if you can.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.