Jump to content

Algorithm for Counting AC Events


ASTDan

Recommended Posts

Here is one simple implementation using a Hilbert Transform and taking a derivative of the envelope. Here's some reading that covers way more about this transform than matters for this discussion, but has a nice picture at the bottom of page 8.

Something similar could be done with the ptbypt RMS suggestion you have on your dark side thread.. Take what you want from it.

hDFeuRR.png

  • Like 1
Link to comment
If you went this route you could replace the hilbert function with this implementation in what I sent you and still capture the transitions in a similar fashion.  Lots of options.

 

I wouldn't. I'd just take rate of change (dy/dx) of the Vrms and if it went outside a value, count the event (assuming it's a bit noisy and not zero when unchanging).

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.