EEG Trigger synchro with sound

5 Ansichten (letzte 30 Tage)
Den
Den am 15 Feb. 2018
Beantwortet: Maryam Butt am 4 Jan. 2019
Hi all, How can I send a single EEG trigger after the sound to our EEG system via Parallel or serial Port? Could somebody please help me/ Thank you very much.
Here is the code I wrote to produce the sound and after which I would like to send the EEG trigger
pahandle = PsychPortAudio('Open', [], 1, 1, freq, nrchannels);
% Set the volume to half for this demo
PsychPortAudio('Volume', pahandle, 0.5);
% Make a beep which we will play back to the user
myBeep = MakeBeep(500, beepLengthSecs, freq);
% Fill the audio playback buffer with the audio data, doubled for stereo
% presentation
PsychPortAudio('FillBuffer', pahandle, [myBeep; myBeep]);
% Start audio playback 1
PsychPortAudio('Start', pahandle, repetitions, startCue,
waitForDeviceStart);
WaitSecs(randi([10, 15]));

Antworten (1)

Maryam Butt
Maryam Butt am 4 Jan. 2019
Hi Den, have you got its solution yet?

Kategorien

Mehr zu EEG/MEG/ECoG finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by