<p>You can buy the <a href="https://uk.sagepub.com/en-gb/eur/building-experiments-in-psychopy/book253480#contents" rel="nofollow noreferrer">book</a> in particular Chapter 18: Building an EEG study. There is also the <a href="https://discourse.psychopy.org/search?q=eeg" rel="nofollow noreferrer">PsychoPy forum</a> with 50+ questions about EEG. You could also go to the lead developers <a href="https://osf.io/tkedn/" rel="nofollow noreferrer">OSF page</a> and steal some code there from his EEG experiments.</p>

CC BY-SA 4.0
2019-01-11T19:02:42.920Z
2019-01-11T19:02:42.920Z
StrongBad
<p>A collection of classic EEG experiments implemented in Python and Jupyter notebooks. 
Currently, all experiments are implemented for the Muse EEG device and using psychopy lib for stimulus presentation. 
Classification is made offline though. But I'll post very soon an online tutorial: 
<a href="https://github.com/NeuroTechX/eeg-notebooks/tree/master/notebooks" rel="nofollow noreferrer">https://github.com/NeuroTechX/eeg-notebooks/tree/master/notebooks</a></p>

CC BY-SA 4.0
2019-01-11T17:54:53.100Z
2019-01-11T17:54:53.100Z
BertrandLalo
<p>I'm trying to find good documentation on using <a href="http://www.psychopy.org/" rel="noreferrer">PsychoPy</a> to measure Event-Related Potentials. In particular, I want to measure and compare the amplitude of the N170, a face-sensitive ERP, when presenting neutral versus threatening faces.
I would be using the Emotiv Epoc EEG headset, <a href="https://www.researchgate.net/publication/277818124_Measuring_the_face-sensitive_N170_with_a_gaming_EEG_system_A_validation_study" rel="noreferrer">whose validity for research on the N170 has been documented</a>.</p>

CC BY-SA 3.0
2016-03-11T18:38:14.557Z
What makes you think PsychoPy is able to do this?
Seanny123
CC BY-SA 3.0
2016-03-13T02:49:07.520Z
Well I don't know for sure that it can do exactly what I want but I do know at least two things: 1/ there is a tutorial in the book "EEG Methods for the Psychological Sciences" on how to design an "EEG experiment" in PsychoPy. I don't have this book though. 2/ There is a discussion in the PsychoPy discussion group on how to make EPOC's software work with PsychoPy and the consensus is that it "should be feasible" by sending event code via a COM port. However, I couldn't find any confirmation that it has been done.
EsoEsMiNombre
CC BY-SA 3.0
2016-03-13T03:00:24.427Z
@Seanny123, That said, I am open to any suggestion. It's possible that my solution is not very well thought out.
EsoEsMiNombre
CC BY-SA 3.0
2016-03-13T03:09:46.040Z
@Seanny123, also, there seems to be this Python library, python-emotiv, that can directly access the Emotiv Epoc EEG headset's data. Using this library in PsychoPy shouldn't be a problem I guess.
EsoEsMiNombre
CC BY-SA 3.0
2016-03-13T03:26:29.103Z
You seem to have a lot of misconceptions (Not your fault! We all need to start somewhere!), which makes this question hard to answer. PsychoPy is a Python library for creating test interfaces for psychological experiments. For example, creating a window with buttons to press. You need to use python-emotiv to get the data. As for analysing the data for ERP, that's a whole other data-based question.
Seanny123
CC BY-SA 3.0
2016-03-14T03:29:59.483Z
@Seann123, thank you for the helpful comment. Haha, yes, I guess my question is confusing. I know PsychoPy is for creating interfaces for psychological experiments. However, I thought, perhaps mistakenly, that it allowed to record various data such as: which subject is being monitored, when the stimulus was presented, what was the response time, etc. Another assumption I am making is that PsychoPy will tell whatever library or software is used to collect EEG data when to start and stop collecting it. Anyway, do you know any good tutorial on designing EEG experiments with PsychoPy?
EsoEsMiNombre
CC BY-SA 3.0
2016-03-14T03:40:44.967Z
Unfortunately I don't, but that sounds like a really awesome way to rephrase your question!
Seanny123
CC BY-SA 3.0
2016-03-15T12:25:50.703Z
Psychopo can be easily used for presenting experimental stimuli for EEG/ERP experiments, including for N170 research. You usually send triggers to the recording computer to synchronize EEG recording and stimulus presentation.
jona
CC BY-SA 3.0
2016-03-23T22:17:21.950Z
Yes, PsychoPy can be used for administering an EEG/ERP experiment -- I've done it. However, I didn't use the Epoc system -- I used the BrainVision system.
Russell Richie
<cognitive-psychology><cognitive-neuroscience><software><event-related-potential>
Do you know any good tutorial on designing EEG experiments with PsychoPy?
EsoEsMiNombre
# Do you know any good tutorial on designing EEG experiments with PsychoPy?

(Asked by: username_0 on 2016-03-11)

I'm trying to find good documentation on using [PsychoPy](http://www.psychopy.org/) to measure Event-Related Potentials. In particular, I want to measure and compare the amplitude of the N170, a face-sensitive ERP, when presenting neutral versus threatening faces.
I would be using the Emotiv Epoc EEG headset, [whose validity for research on the N170 has been documented](https://www.researchgate.net/publication/277818124_Measuring_the_face-sensitive_N170_with_a_gaming_EEG_system_A_validation_study).

**Tags:** cognitive-psychology, cognitive-neuroscience, software, event-related-potential

> **Comments:**
> **username_1**: What makes you think PsychoPy is able to do this?  
> **username_0**: Well I don't know for sure that it can do exactly what I want but I do know at least two things: 1/ there is a tutorial in the book "EEG Methods for the Psychological Sciences" on how to design an "EEG experiment" in PsychoPy. I don't have this book though. 2/ There is a discussion in the PsychoPy discussion group on how to make EPOC's software work with PsychoPy and the consensus is that it "should be feasible" by sending event code via a COM port. However, I couldn't find any confirmation that it has been done.  
> **username_0**: @username_1, That said, I am open to any suggestion. It's possible that my solution is not very well thought out.  
> **username_0**: @username_1, also, there seems to be this Python library, python-emotiv, that can directly access the Emotiv Epoc EEG headset's data. Using this library in PsychoPy shouldn't be a problem I guess.  
> **username_1**: You seem to have a lot of misconceptions (Not your fault! We all need to start somewhere!), which makes this question hard to answer. PsychoPy is a Python library for creating test interfaces for psychological experiments. For example, creating a window with buttons to press. You need to use python-emotiv to get the data. As for analysing the data for ERP, that's a whole other data-based question.  
> **username_0**: @Seann123, thank you for the helpful comment. Haha, yes, I guess my question is confusing. I know PsychoPy is for creating interfaces for psychological experiments. However, I thought, perhaps mistakenly, that it allowed to record various data such as: which subject is being monitored, when the stimulus was presented, what was the response time, etc. Another assumption I am making is that PsychoPy will tell whatever library or software is used to collect EEG data when to start and stop collecting it. Anyway, do you know any good tutorial on designing EEG experiments with PsychoPy?  
> **username_1**: Unfortunately I don't, but that sounds like a really awesome way to rephrase your question!  
> **username_2**: Psychopo can be easily used for presenting experimental stimuli for EEG/ERP experiments, including for N170 research. You usually send triggers to the recording computer to synchronize EEG recording and stimulus presentation.  
> **username_3**: Yes, PsychoPy can be used for administering an EEG/ERP experiment -- I've done it. However, I didn't use the Epoc system -- I used the BrainVision system.  

---

## 2 answers

### Answer by username_4 on 2019-01-11. Score: 2

You can buy the [book](https://uk.sagepub.com/en-gb/eur/building-experiments-in-psychopy/book253480#contents) in particular Chapter 18: Building an EEG study. There is also the [PsychoPy forum](https://discourse.psychopy.org/search?q=eeg) with 50+ questions about EEG. You could also go to the lead developers [OSF page](https://osf.io/tkedn/) and steal some code there from his EEG experiments.


---

### Answer by username_5 on 2019-01-11. Score: 2

A collection of classic EEG experiments implemented in Python and Jupyter notebooks.
Currently, all experiments are implemented for the Muse EEG device and using psychopy lib for stimulus presentation.
Classification is made offline though. But I'll post very soon an online tutorial:
<https://github.com/NeuroTechX/eeg-notebooks/tree/master/notebooks>


---

