Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/janfreyberg/binoc-ssvep
Experiment for binocular rivalry with SSVEP
https://github.com/janfreyberg/binoc-ssvep
Last synced: about 2 months ago
JSON representation
Experiment for binocular rivalry with SSVEP
- Host: GitHub
- URL: https://github.com/janfreyberg/binoc-ssvep
- Owner: janfreyberg
- Created: 2015-03-17T13:47:09.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-04T16:17:40.000Z (almost 9 years ago)
- Last Synced: 2024-10-12T15:54:00.525Z (3 months ago)
- Language: Matlab
- Size: 191 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# binoc-ssvep
Experiment for binocular rivalry with SSVEP
copyright (c) 2015 Jan FreybergThis code will produce several trials of binocular rivalry on a single display, to be used with a mirror stereoscope. It will flicker the stimuli (gratings) at two distinct frequencies, designed to elicit distinct SSVEPs.
You may need scripts from the autism-research-centre repository `matlabGeneral`
# Experiment
Run the experiment by running `binoc_ssvep`.
The code will run:
* 1 practice block with static gratings
* 1 practice block with flickering gratings
* 16 experimental blocks with pseudorandom counterbalancing### Variables
Change the following variables to adjust your experiment:
* `freq1/freq2`: the frequencies you want (they have to be multiples of the Screen Refresh rate, in my case 144Hz)
* `trialdur`: the duration of a trial
* `contr`, `stimsize`, `cycperdegree`: stimulus properties (Contrast, Size and Spatial Frequency)Additionally, the following need to be accurate:
* `scr_diagonal` gives real display diagonal, in inches
* `scr_distance` is the subject's distance from the screenOf course, you'll have to change all filepaths to suit your machine and OS.
### Triggers
The script sends a trigger to a parallel port whenever:
* The response of the participant changes (they change what button they press)
* A trial startsThe value of button-press related triggers is the decimal equivalent of a 3-digit binary vector where each digit represents one of the three buttons you use for response (left, up, right in my case)
Change the variable `address` to your port address, and adjust triggering to your liking by finding all lines that contain `outp(...)`.
# Analysis
`analyse_binoc` will analyse the data for you.
It calculates:
* The power of a frequency during perceptual phases
* The pure behavioural result of the experiment
* The signal-to-noise ratio at various electrodes
* The amplitude of the two frequencies