Note that, in E-Prime parlance, stimulus "offset" does not mean
either the end of stimulus presentation, nor the onset of the
following stimulus; "offset" actually refers to when E-Prime stops
executing code for that object and moves on to executing further
instructions. Someday I need to write this all up, but it's tricky
to describe this all correctly.
-----
David McFarlane
E-Prime training
online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (twitter.com/EPrimeMaster)
-- David McFarlane
So, as I explain in more detail in my online course (but without
going into all these specific I/O intricacies), as a general rule you
must make sure to set your output to a known base value well before
you output each signal (including the first one!), and you must make
each signal remain long enough for your equipment to detect it.
So, for practice, for your 500 ms stimulus, try setting PreRelease to
400, and see how that works. Then try shorter values, and titrate it
until you get suitable results.
And take my online course!
-----
David McFarlane
E-Prime training
online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (twitter.com/EPrimeMaster)
But ultimately, if you really want to know the relationship between
the time of a visual stimulus and the time of a trigger output, then
you must get out a dual-channel oscilloscope, aim a high-speed
photodetector (e.g., photodiode or phototransistor) at your display
screen, tap a line into your trigger output, and then look at those
signals on the oscilloscope. You might need to find someone local
with some electrical engineering experience to help with this.
And then, to get the best timing performance, you *must*, MUST
thoroughly study Chapter 3 of the User's Guide that came with
E-Prime!!! I cannot stress that enough! Until you do that, you
might as well be using a handheld stopwatch.
-----
David McFarlane
E-Prime training
online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (twitter.com/EPrimeMaster)
I would not completely trust your Clock.ReadMillisec here, as there
may be delays in program execution between Stimulus.OnsetTime and
execution of your c.SetAttrib command.
Now, I hate to repeat myself, but...
>Now, Do you think there is a way to know the exact time E-Prime
>presents the stimulus on the screen?
Again, you need an oscilloscope and a local electrical engineer to
help you with that.
>How much do you think the difference is between the Stimulus
>OnsetTime and the exact time the Stimulus is actually presented?
And again, YOU MUST STUDY CHAPTER 3 OF THE USER'S GUIDE BEFORE
PURSUING THIS FURTHER!!!!!!!!!!
-- David McFarlane