From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Patter matching of a square wave signal

I'm quite a newbie with signal processing...

I need to recognize if a signal is a square wave. How can I do it?

FFT? Multiple tone analyze?

 

Thanks

0 Kudos
Message 1 of 5
(2,232 Views)

duty cycle?

 

Have a look at the histogram 😉

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 5
(2,214 Views)

What are the other possibilities? Sine wave? Low duty cycle pulses? What is the signal to noise ratio?

 

To set up an automated classification system, you must know what the range of possible signals looks like.

 

Lynn

Message 3 of 5
(2,196 Views)

Signal can be any signal: sine wave, sawtooth wave, noise,...

I need to recognize if the signal is a square wave (with any duty cycle) or not. If the signal is a square wave, my program performs some measurements; otherwise the signal is "rejected".

 

Can you help me?

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

HISTOGRAM !!   😄

 

Will the square wave have over shoot? ringing? , rise time?

When is it a short square pulse or a trapezoide   ?

 

The square wave should only have two levels, so the histogram will have two peaks.  normalize the input wave , calc histogram *, mask the peaks, summ the residual bins and you have a good weigth to work with.

 

And then I will feed you with clipped sine shapes Cat LOL

 

*) or try to normalize the histogram (peak search from left and rigth??, mean and standard dev. ?  )

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 5
(2,172 Views)