LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rising edge of square wave

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!

0 Kudos
Message 1 of 5
(3,003 Views)

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.

Message 2 of 5
(2,999 Views)

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).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 5
(2,984 Views)

So I actually discovered the answer to that question I had, but thank you for your response!

0 Kudos
Message 4 of 5
(2,978 Views)

@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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 5
(2,971 Views)