How to calculate beats per minute from digital port input

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
gggwww
Posts: 54
Joined: Wed Sep 09, 2009 12:50 am
Has thanked: 1 time

How to calculate beats per minute from digital port input

Post by gggwww »

Hello,

How best to calculate beats ( counts) per minute from a digital input without having to wait for a full minute.
Im new to timer routines - seems like this is the best route
Can anybody help?

Thanks !!

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: How to calculate beats per minute from digital port inpu

Post by Benj »

Hello,

Your best bet may be to do some kind of rolling average. There are posts on this forum about this if you do a search.

This example may help to get you started.
Attachments
5. Digital frequency counter.fcf
(13.5 KiB) Downloaded 292 times

Post Reply