timeLimit in object
Robert Dörr
uni at robertdoerr.de
Tue Mar 15 15:02:22 UTC 2005
Hi
The timing cannot be accurate, because ww.RESP is checked after
sleep(550) has finished and _not_ while sleeping. So the maximum
accurancy is 550ms (or the duration of your sound file).
Robert
Yoav Bar Anan wrote:
> Hi all,
>
> In my experiment I set the "Time Limit" of a waitObject to "infinite"
> and the "duration" to 0, and that way I can continue to the next
> inline script object. In this script I play sound files in a loop that
> waits until the waitObject.Resp is not "" (i.e until a response).
> However, it seems that the timing of the response is not accurate.
> I wanted to see whether it is the sound-playing that disturbs the
> accurate time-recording, so I replaced it with a simple "sleep(550)"
> line. The timing of the response is still not accurate. When I reduce
> the time of the sleep (e.g. "sleep(10)") the inaccuracy shrinks.
> Maybe I should somehow set the waitObject to accept the response in
> parallel to the continuation of the script. Does anyhow has an idea how?
>
> Thanks,
> Yoav
>
> P.S.
> for your convenience here is the script:
> while ww.RESP = ""
> sleep(550)
> wend
>
>
More information about the Eprime
mailing list