EEG Trigger synchro with sound

9 ビュー (過去 30 日間)
Den
Den 2018 年 2 月 15 日
回答済み: Maryam Butt 2019 年 1 月 4 日
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]));

回答 (1 件)

Maryam Butt
Maryam Butt 2019 年 1 月 4 日
Hi Den, have you got its solution yet?

カテゴリ

Help Center および File ExchangeEEG/MEG/ECoG についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by