LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Peak Detect

Solved!
Go to solution
Solution
Accepted by Cleisthenes

A filter helps. There's probably a better implementation, but this might be a step forward:

HR Monitor.png

Message 11 of 29
(1,920 Views)

That does look a lot better! What exactly did you do?

 

And would you mind attaching your VI? It'd be really helpful to take a closer look

0 Kudos
Message 12 of 29
(1,915 Views)

Ah, I forgot to mention: that image has the code in it. Save it to your PC, then drag it onto a block diagram.

0 Kudos
Message 13 of 29
(1,910 Views)

 

Do you save it as a .png? I seem to be having some trouble getting it over

0 Kudos
Message 14 of 29
(1,904 Views)

Right-click on the picture. Select "Save Picture as". It should already be a png.

Then create a new, blank VI and open the block diagram. Drag the png file from the folder onto the BD.

 

I'd attach the VI, here, too - but somehow the browser won't let me, right now.

0 Kudos
Message 15 of 29
(1,901 Views)

@Todd_Lesher wrote:

Right-click on the picture. Select "Save Picture as". It should already be a png.

Then create a new, blank VI and open the block diagram. Drag the png file from the folder onto the BD.

 

I'd attach the VI, here, too - but somehow the browser won't let me, right now.


hi,

 

attach your vi wrapped in a .zip file!

0 Kudos
Message 16 of 29
(1,896 Views)

Here's my take at a crude signal conditioning. With the relatively clean signal and zero mean the peak counting should be straigtforward. 

Message 17 of 29
(1,893 Views)

 

Wow Todd, that's awesome! I've never seen that before.

 

Is there any way for the program to process live data, or does it have to be pre-recorded and stored?

0 Kudos
Message 18 of 29
(1,878 Views)

Zwired, what exactly did you do to smooth out the signal?

0 Kudos
Message 19 of 29
(1,876 Views)

It's called a snippet.

If you replace the for loop with your while loop and use the "Photocell Read" to supply the data instead of the Raw Data indexed values, you'll get calculations as you acquire data.

0 Kudos
Message 20 of 29
(1,867 Views)