12-03-2014 01:25 PM
Hi all,
I'm wondering how I would go about finding the rising edge of a square wave. I can trigger true when the rising edge of a sine wave occurs but it doesn't work for a square wave.
Any ideas would be excellent!
12-03-2014 01:36 PM
Post your VI. If your data is a digital waveform it should be easy enough to say if the value at N+1 is True and the value at N is False then you just saw a rising edge.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-03-2014 01:56 PM
How do you detect it with a sine wave? I'm guessing you compare the value to 0, which is halfway between the max and min. So you do the same for the square wave, compare it to half its amplitude (assuming the square wave's min is 0).
12-03-2014 01:59 PM
So I actually discovered the answer to that question I had, but thank you for your response!
12-03-2014 02:10 PM
@winterfresh11 wrote:
So I actually discovered the answer to that question I had, but thank you for your response!
And what was your answer? Please share since somebody else might run into the same issue and this thread might be able to help them.