NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
glee10
Posts: 3
0 Kudos

EEG biofeedback

hi,

   i am working on a project based on biofeedback where we are analysing EEG signals and giving a feedback to the brain through flickering of lights to reduce stress. i have samples of EEG waveforms of few people. now i have to develop this system in labview. i have to amplify these EEG signals and then i am filtering the alpha frequency range. after filteringi have to follow the algorithm given below:

i)            A .25 second interval of data is analyzed

(ii)         Maximum and Minimum values are determined

(iii)    .7(Max-Min) + Min is determined and set as a threshold value

(iv)    The signal data is then compared to this value

(v)      If the data is > than the threshold the y-value = 1.

(vi)    If the data is < than the threshold the y-value = 0.

(vii)     This outputs a square wave of which the frequency can easily be determined.

 

i dont know how to go about with this. pls if any one can give me advice or guide me on the right track

 

Member
Shivam Awasthi
Posts: 18
0 Kudos

Re: EEG biofeedback

Hi,

Please find the code for your query attached below. I suppose with a square wave of varying frequency you mean to refer to the duty cycle of the pulse. I also suggest that you go through some LabVIEW fundamentals or take up a LabVIEW basics course. That will enable you to build these codes on oyur own.

Best Regards,
Shivam Awasthi
Member
glee10
Posts: 3
0 Kudos

Re: EEG biofeedback

To Mr.Shivam

thank you so much sir for helping me.:smileyhappy: i'll surely follow your advice and do a basic course in LABVIEW. 

 

thank you.

Member
Steve.J
Posts: 195
0 Kudos

Re: EEG biofeedback

Please also see our on-line NI Biomedical User Group here:  www.ni.com/biomedusers
Visit the NI Biomedical User Group at:
www.ni.com/biomedusers
Member
glee10
Posts: 3
0 Kudos

Re: EEG biofeedback

hello sir,

 i tried your given code with the EEG waveforms i had. it works fine but the square wave generated at the output has frequency of about .6hz whereas i want the frequency to be between 9hz to 12hz. how do i go about with it. what changes should i make and also am attaching my code. please guide me.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page