Note
Click here to download the full example code
N170 run experiment¶
This example demonstrates the initiation of an EEG stream with eeg-notebooks, and how to run an experiment.
Setup¶
Imports
import os
from eegnb import generate_save_fn
from eegnb.devices.eeg import EEG
from eegnb.experiments.visual_n170 import n170
# Define some variables
board_name = 'muse'
experiment = 'visual_n170'
subject = 'test'
record_duration=120
Initiate EEG device¶
Start EEG device
eeg_device = EEG(device=board_name)
# Create save file name
save_fn = generate_save_fn(board_name, experiment, subject)
print(save_fn)
Run experiment¶
n170.present(duration=record_duration, eeg=eeg_device, save_fn=save_fn)
Total running time of the script: ( 0 minutes 0.000 seconds)