05-11-2013 06:29 AM
I want to simulate EEG and add artifacts to the signal. By using Biotoolkit I got the EEG signal without artifacts. In addition, I simulated 50Hz noise and white Gaussian noise and tried to add them to EEG. I do not want to add white noise by changing white noise amplitude in the configuration. How to add these noise?
05-13-2013 11:41 AM
You can accomplish this by using a Compound Arithmetic function and doing a little bit of data type conversion. I'll include a VI snippet below. I used a Convert from Dynamic Data function and a Get Waveform Components function. Using this method you'll have to be careful what sampling rate and number of samples you set on your Generate Waveform function based on the size of data you're getting out of your Simulate EEG function. I hope this helps.
05-13-2013 11:57 PM
Thank you ^^
05-14-2013 03:50 AM
I simulated the diagram like your image. When I saw the spectrum in the graph, I cound not see any affect of 50Hz noise.
05-14-2013 03:30 PM
How long is your generated Gaussian and EEG data? As it's written in the snippet I posted, the 50Hz noise will only last for one second or 256 points. The Sine Waveform VI I used generates a number of points based on the frequency and number of samples input to the sampling info input. The VI as written outputs 256 samples that were sampled from the 50 Hz waveform at a rate of 256 Hz. You will need to adjust this sampling info input based on the length of 50 Hz noise that you require.