LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Algorithim on AC waveform

here is a coffee break solution:

rectify , window peak  (crude solution), detect change (and glued some logic to prevent double counts)

won't detect a 'slow' step

 

 

count steps.png

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 11 of 12
(245 Views)

I found a straghtforward peak detector followed by a transition detector seems to work well with the simulated data.

 

My initial threshold for the peak detector was zero and that worked but it it seemed to capture one of the phase changes in a way the looked like it might produce errors with noisier data. Similarly the threshold in the transition detector was adjsuted arbitrarily until the results looked good.

 

Lynn

Download All
0 Kudos
Message 12 of 12
(228 Views)