LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to count peaks on chart in LabView above some specifc value. How to count amount of hills (Heart Rate Monitor)

I want to create some simple heart rate monitor in LabView.

 

I have sensor which gives me heart workflow (upper graph) . On second graph (lower graph) is amount of hills (0 - valley, 1 - hill) and that hills are heart beats (that is voltage waveform). From this I want to get amount of those hills, then mulitply this number by 6 and I'll get heart rate per minute.

 

Measuring card I use: NI USB-6009.

I attach VI file and waveform graphs. 

Any idea how to do that?

 

 

Download All
0 Kudos
Message 1 of 4
(1,161 Views)

Try the peak detector vi included in labview. You can set up threshold and width. I use it for similar detection and it works very well. Sometimes I pre filter the waveform to set the signal to 0 below a certain amplitude. This can help to remove detection of the lower peaks that you don't want. They are still peaks after all. 

Message 2 of 4
(1,157 Views)

So I can pass as input data with 0 and 1s (that square waveform) and peak detector should find all peaks in that data? And set threshold higher than 0 to find it? Do I have to set width? I can't set constant range to searching peaks because waveform varies in time. I can just find approximate amplitude above which I can find those peaks. Unfortunately I don't have acces to PC with LabView now (I use it at the university) to try this so I'm just collecting ideas how to solve this, sorry for so many queries. 

0 Kudos
Message 3 of 4
(1,146 Views)

Use your analog waveform and send it to the 'Extract Single Tone Information.vi' It is found under the signal processing-> Wfm Measuments pallet.

 

How many cycles are you going to use to determine BPM? If not all then determine what data length to give the subvi. Give it 1,2,10 seconds of data?

 

Your VI doesn't have any data we can use. The indicators are empty.

 

To give us some sample data when you get a waveform into an indicator

  1. make a copy of it
  2. Right click the copy and change it to control.
  3. If data is stll there right click it slect data operations make current value default
  4. If data is missing use copy data from data operations on indicator.
  5. Then data operations paste data into control
  6. right click control and select make current value default.
  7. Save the vi
  8. Anyone can then use that control to test out BPM calculation scenarios for that data.

Norm

0 Kudos
Message 4 of 4
(1,109 Views)