Track trigger timing

Peter Quain pquain at une.edu.au
Wed Jan 5 21:32:49 UTC 2011


you don't need any blank columns in a List (PulseOnset/Offset), no 
values are writen there at runtime. SetAttrib sets the value of an 
attribute, and stores that value in the LogFile in a column for that 
attribute, not in any List.

At 05:37 AM 6/01/2011, you wrote:
>Michiel and David,
>
>Thank you very much for your suggestions. My program worked as it
>should without the TMS trigger. I have finally figured out the
>solution to this problem and will post it here in case someone else
>has a similar issue.
>
>Originally, the InLine script that sent the trigger to the TMS was
>placed at the very beginning of the experiment. That is where I also
>coded my variables (right after trigger code I had [PulseOn =
>Clock.Read]). So, it turns out, probably not surprisingly, that this
>InLine is read only once during the experiment (although if anyone
>could explain how the trial procedure knows when to execute the
>triggers which are specified and read only once at the beginning of
>the expt, I would appreciate it :)) and, therefore, all PulseOnsets/
>Offsets will have the same value on a trial-by-trial basis.  In order
>to update PulseOn/Off variable I had to move the InLine with triggers
>to the beginning of the trial procedure (which I didn't do originally
>due to some other issues with the trigger). I also created empty
>columns (called PulseOnset/Offset) in the trial List because that is
>where the variables will be stored. The code is printed below.
>
>Happy programming!
>
>Evelina
>
>************************************************
>'Here PulseSOAs is a List with trial parameters
>'For zero SOA trigger on Target
>If PulseSOAs.GetAttrib(1, "SOAcondition") = 0 Then
>         Target.OnsetSignalEnabled = True
>         Target.OnsetSignalPort = &H378
>         Target.OnsetSignalData = 128
>
>                 'Timestamp pulse onset
>                 'PulseOnset is a blank column in PulseSOAs List
>                 c.SetAttrib "PulseOnset", Clock.Read
>
>         'Resets port
>         Target.OffsetSignalEnabled = True
>         Target.OffsetSignalPort = &H378
>         Target.OffsetSignalData = 0
>
>                 'Timestamp pulse offset
>                                 'PulseOffset is a blank column in
>PulseSOAs List
>                 c.SetAttrib "PulseOffset", Clock.Read
>
>
>'For positive SOAs trigger on Blank
>ElseIf PulseSOAs.GetAttrib(1, "SOAcondition") > 10 Then
>         Blank3.OnsetSignalEnabled = True
>         Blank3.OnsetSignalPort = &H378
>         Blank3.OnsetSignalData = 128
>
>                 'Timestamp pulse onset
>                 c.SetAttrib "PulseOnset", Clock.Read
>
>         'Resets port
>         Blank3.OffsetSignalEnabled = True
>         Blank3.OffsetSignalPort = &H378
>         Blank3.OffsetSignalData = 0
>
>                 'Timestamp pulse offset
>                 c.SetAttrib "PulseOffset", Clock.Read
>
>End If
>
>--
>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 this group at 
>http://groups.google.com/group/e-prime?hl=en.

-- 
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 this group at http://groups.google.com/group/e-prime?hl=en.



More information about the Eprime mailing list