01-26-2015 07:40 AM
Hi,
If Anyone would be able to help me. I want to calculate the periode of my input, and for that I used the fonction "Tick Count" and apparently it's not the right choice
Any suggestions
Thank you in advance for your replies
My best regards
Nadia
Solved! Go to Solution.
01-26-2015 08:05 AM
I am guessing you are just getting an increasingly larger and larger number for your loop timer. You can use the tick count function as long as you are holding the previous value in a shift register and finding the difference between the two. The white paper below gives other examples for finding the loop time in an FPGA VI.
http://www.ni.com/example/30439/en/
01-26-2015 09:39 AM
But a loop time function give me the speed of my loop, and what I'm looking for is how to get the period of my input(my signal)
My best regards
Nadia
01-26-2015 09:51 AM - edited 01-26-2015 09:57 AM
Try checking out the "PWM Measurement" example in the NI example finder (just use the search to find it). It should cover everything you're asking about here. Feel free to post back with any questions you have about it.
Also, here's a relevant old post: http://forums.ni.com/t5/LabVIEW/PWM-Rise-Fall-detection/m-p/2503918#M762735
01-27-2015 06:11 AM
Thank you so much
My best regards
Nadia
01-27-2015 08:42 AM
T-REX$ in your opinion, the sum of the high and low period will give me the period
Thank you advance for your answer
My best regards
Nadia
01-27-2015 08:45 AM
Yes, the amount of time high plus the amount of time low will give you one period.
02-11-2015 02:49 AM
Hi T-REX$
Your method is working great
I still have a question. Do you see how to verify that my signal is not turn off
Thank you in advance
My best regards
02-11-2015 07:40 AM
k.nadia wrote: I still have a question. Do you see how to verify that my signal is not turn off
You will typically want to have a max value for the period. If your count for the period goes above that value, consider the signal to be turned off.