Agree with liw generally about handling the timing, but I would just
use a SoundOut object instead of a Slide or anything visual, that way
your visual stim will simply remain while your sound plays with no
further fuss.
My own favorite trick for getting timing like this to work is to make
use of the more esoteric SetNextTargetOnsetTime (see the online
E-Basic Help). On your stimulus Slide (let's call it StimSlide), set
End Action to (terminate) and leave its Duration at 2000. Follow
that with an inline, and then a SoundOut object (let's call it
FeedbackSound) and set its Duration to 2000. In the inline between
StimSlide and FeedbackSound, just put
SetNextTargetOnsetTime StimSlide.OnsetTime
Now, whenever your program gets to FeedbackSound, it will think that
FeedbackSound was supposed to start at the same time as StimSlide and
then end 2000 ms later, i.e., 2000 ms after StimSlide started. Isn't
that slick? And it required no computation.
Admittedly, using tricks like this does rely on some deeper
understanding of the inner hidden workings of E-Prime, and I don't
have time to explain all that just now. Also, your subject may get a
short beep even for no response, so you may have to work out a little
more code to get everything to work the way you want (see liw's
further discussion earlier).
-- David McFarlane, Professional Faultfinder
Thanks for posting back with your solution...
At 4/15/2011 11:58 AM Friday, you wrote:
>To your SetNextTargetOnsetTime David, as I had to set the End Action
>to (terminate), the slideimage would actually disappear
Um, no, not if you have Clear After set to No, which is the
default. I had just assumed that you had Clear After set to the
default value of No. With Clear After set to No, a visual stimulus
remains visible until some other visual stimulus comes to replace it,
which is almost always a better way to do things (i.e., why have a
stimulus do the extra work of clearing itself when the next stimulus
would cover it anyway?). You must have set Clear After to Yes at
some point, try setting it to No and see whether or not I know what I
am talking about :).
Regards,