LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the peak data

Hello,

 

I've attached 2 programs below.

 

Okay both programs run on labview. And i'm using labview 2011.

 

In the ThinkGear subvi, the program reads the brain wave of a user using Neurosky Mindwave. I want to know how to extract the peak value of the brain wave and then put into the email subvi.

 

Thank you.

 

 

 

 

Download All
0 Kudos
Message 1 of 3
(2,051 Views)

Blueribbon,

 

I do not have the Neurosky VIs, so it is difficult to tell much about your program.

 

It appears that you are obtaining one scalar value on each iteration of the loop.  To find a peak you need a collection of many points. You can either accumulate the data into an array via a shift register and Replace Array Subset (Initialize the array first, outside the loop) or read it from the chart history.  Then you can use the Peak Detector from the Signal Processing >> Signal Operations palette or even Array Max & Min from the Array palette if the data is not noisy.

 

Lynn

Message 2 of 3
(2,042 Views)

Lynn,

 

Okay, i'll try out what you suggested.

Thank you very much.

 

Regards,

Blueribbon

0 Kudos
Message 3 of 3
(2,036 Views)