Eprime triggers to EEG out of sync
Paul Groot
pfc.groot at gmail.com
Tue Sep 18 15:37:44 UTC 2012
Hi Alexandre
I would advise to use the new EP2-Pro *Task Events* mechanism here:
http://www.pstnet.com/support/kb.asp?TopicID=4803
No need to do such inline programming anymore with Task Events...
Paul
2012/9/18 aldelfino <aldelfino at gmail.com>
> Hi Paul,
>
> maybe I haven't stated my problem clearly enough. For now, I decided to
> change the script. I eliminated the response object and used a Sound object
> instead of a Slide object. My biggest issue is on how to play a certain
> audio file and make an associated trigger to be sent to EEG a few
> milisseconds after the onset of the same audio file. So far, I'm able to
> send the triggers, but the 'sleep' function delays both audio execution and
> trigger signal. Is it possible to set up the sleep function only for the
> trigger? Please find below an updated version of the inline script:
>
> Dim StimTrigger as Integer
> Dim StimDelay as Integer
> StimTrigger = c. GetAttrib ("Trigger") 'condition-associated trigger
> StimDelay = c. GetAttrib ("Delay") 'delay in milisseconds a trigger must
> be sent to after the onset of the audio file
> SoundOut1.OnsetSignalEnabled = True
> SoundOut1.OnsetSignalPort = &H378
> SoundOut1.OnsetSignalData = StimTrigger
> sleep StimDelay (?)
>
>
> Thanks,
>
> Alexandre.
>
> --
> You received this message because you are subscribed to the Google Groups
> "E-Prime" group.
> To post to this group, send email to e-prime at googlegroups.com.
> To unsubscribe from this group, send email to
> e-prime+unsubscribe at googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/e-prime/-/zS47jDaq0AIJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20120918/1867be01/attachment.htm>
More information about the Eprime
mailing list