LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I count and display events every few seconds and then convert the counted values into events per minute? (for a heart rate monitor)

Hi everyone,

 

I'm building a heart rate monitor as a final year project with my lab partner using the NI USB-6009 and Labview 2009. We have managed to obtain a signal using a photo transciever, smooth it out and count the events, however the count is incremental.

 

We wish to count the number of pulses we obtain for a few seconds (5-10 for example) and then use this value to obtain a pulse rate in beats per minute (e.g. 10 pulses in the first 10 seconds would give an estimated BPM of 60 etc etc).

 

Does anybody have ides on how we could implement this? We have tried timed loops, elapsed time VI's and other things but nothing gives us what we need.

 

Thanks in advance for any help that is offered.

 

Jeshua Graham.

 

 

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

Use external pulse as sample clock for your counter, so that the counter will count only when pulse occurs& then u can use the real time clock for finding BPM.

 

If you have implemented some code, then better post it.

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

We are very new to Labview. We are taking a raw signal from our DAQ and then using VIs to filter and then trigger counts on rising edges. I have attached our vi file to this post for you to look at (I hope that is what you mean by code).

0 Kudos
Message 3 of 5
(2,875 Views)

You may get better results by posting on our Biomedical User Group located at www.ni.com/biomedusers

 

 

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

Regardless of where you post, it might be useful to break down the task into the components you want to perform so the community can make suggestions on how to accomplish them. For example, are you curious of how to set up the sampling, change the the triggering, implement a counter, etc. Try to break down your project into smaller components. We assume you are looking for help to specific questions, so narrowing your query will probably encourage more replies.

Verne D. // Software R&D // National Instruments
0 Kudos
Message 5 of 5
(2,819 Views)