PyEPL and EEG

From MallWiki

Jump to: navigation, search

Marc,

We are just switching to pyepl and trying to use it for erp experiments. We noticed that there was a query about stopping sync pulsing from you guys and I was just wondering if you had found a resolution. Do you know why they use sync pulsing, instead of event based triggers?

Cheers,

Simon.


Hey Simon,

I think they set it up to send pulses just as a default so that you can line everything up, we decided we liked event controlled better.

We didn't want the pyepl to send pulses every second like it does by default, we wanted to control when it sends pulses. Unfortunately when the pyepl EEG logging is turned on it sends the pulses. The solution is to stop the eeg logging, use the timedPulse(10) and pulseTrain(10) methods to send pulses, and create a custom log to record when the eeg pulses occurred.

Here is some code:

eeg = EEGTrack("eeg") eeg.stopLogging() eeglog = LogTrack("customEEG")

to send a pulse train:

eeg.pulseTrain(10) eeglog.logMessage('TRAINPULSEBEGIN',clock)

or to send just one pulse:

eeg.timedPulse(10) eeglog.logMessage('PULSEU',clock)

-Peter If you have any more questions just send them my way.

Personal tools