11-14-2013 02:14 PM
Hi, I have a signal that is a number of single pulses which i am capturing using a Digitizer and then fetching integer values to make the pulsewidth measurements faster.
My signal is AC coupled therefore i have quite a lot of noise, i want to measure the pulsewidths but i need some hysterisis to reject any of the noise. I am a C programmer and this would be a simple case of looking forward a number of elements in the array after the initial threshold has been satisified but i do not know how to do this in LabView.
Can anybod help me out?
Thanks.
Wayne
11-14-2013 05:58 PM
There are many ways to detect the pulse width of a signal with noise and without knowing your setup how the signal looks it, we will be totally guessing. That being said I would first try the "Measure Pulse" function under the Waveform Measurement palette (does your C have that?). If the signal for some reason won't work with this canned function then by all means write your own. Set up a comparision to say is my analog value greater then 0.5V? (or what ever) then find the times from going from FALSE to TRUE to find the rising edge, and from TRUE to FALSE for a falling edge.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord