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 !!
How to calculate beats per minute from digital port input
Moderator: Benj
- 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
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.
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel