/audiopsynch

MATLAB scripts to record EEG, Eyetracking during behavior tests in Psychtoolbox-3 synchronized by audio trigger

Primary LanguageMATLAB

AudioPsynch

Audio-triggered & single setup for Psychophysics experiments. Traslational Neuroscience Laboratory Laboratory

MATLAB scripts and functinos to record simultaneuosly:

  • EEG by Bluetooth,
  • Eyetracking by USB TCP/IP socket,
  • microphone,
  • webcam &
  • stimuli & answers programmed in Psychtoolbox-3 or PTB

Brief Hardware Suggestion

These are equipmets required:

  • PC A for Setup A

    • Windows
    • Webcam & microphone
    • GPU (optional)
    • MATLAB & PTB
    • GazePoint Control
    • Audio 3.5 jack Audio Output
  • PC B for Setup B

    • Windows
    • Webcam & microphone
    • Bluetooth
    • Audio 3.5 jack Input
    • MATLAB & PTB
    • GazePoint Control (only if Setup B)
  • Neurosky

    • Single Channel EEG
  • GazePoint

    • IR Eye Tracking

--

Setup A: Two-PC Audio Triggered system:

This setup, desribed below, also requires a custom audio jack splitter (3.5 hijack) which basically sends audio output of PC A to audio input of PC B

Setup

Audio splitter

To split audio, it is necessary the know the TRRS configuration of your devices. For instance, we developed this little hijack to separate audio output and microphone input:

TRRS Jack

Audio Trigger for Synchronizated Recordings

  • PC A sends beep to PC B

Experiment Profile

Example Script

  • Run >>Help_AP to see instrucions
  • Run >>ExampleSetupA

--

Setup B: One-PC & all-in sensors system:

For this setup all sensors are plugged to one single PC.

Setup

Example Script

  • Run >>Help_AP to see instrucions
  • Run >>ExampleSetupB

--

Help & Demos

1 Help

2 Stroop

3 Otra prueba