Millisecond Online Community

possible to implement countdown-display??

rated by 0 users
This post has 5 Replies | 2 Followers

Top 500 Contributor
Posts 2
Herbie_Anti Posted: 07-08-2009 4:26 AM

Hey,

I wonder if there is a way to implement a countdown as a simple text stimulus. It should show the participants the elapsed time they have thus far spent in a block; something which is, for some reasons, necessary for our experiment. I've come as far as to define a text item that displays elapsedtime but only  in ms, and - that is the cardinal error - only once when the trial actually begins.

<text timepass>
/ items = ("XXX: <% round(block.main.elapsedtime) %>")
/ position = (75%, 65%)
</text>

Any idea how I could get a countdown that counts down during the trial? I considered using a video but since there is navigation back to the trial in which the elapsed time of the block shall be displayed that does not seem useful, let alone the timing inaccuracies that would occur.

Looking forward to your answer(s)

T.

 

Top 10 Contributor
Posts 99

Hey T.,

You're probably going to have to implement all the times and make sure a trial is run for 1 second. It would look like something like below:

<text timepass>
/items = times
</text>
<item times>
/1 = "4:00"
/2 = "3:59"
etc.
</item>

<trial timepassed>
/stimulustimes = [0=timepass]
/timeout = 1000
</trial>

<block time>
/trials = [1-xxx = timepassed]
</block>

You might be able to use a <counter>-element for the minutes and seconds.  Another method is to use pictures. But the video is probably a better idea: you should be able remove the backbutton with /showbackbutton = false (or something).

Hope this helps,

Ivor

Why visit Java, that's next to the C, when a Python is more dangerous!

Top 10 Contributor
Posts 2,031

I also believe that using a video or (better yet) a flash file to display the elapsed time is your best shot. As a matter of fact, I have used this exact approach in the past with much success and I've even written about it here a few times:

http://www.millisecond.com/community/forums/t/843.aspx

http://www.millisecond.com/community/forums/p/951/2401.aspx

If handled correctly, I wouldn't expect any timing issues either.

Regards,

~Dave

"To understand recursion, you must first understand recursion."  - Unknown Zen Master

Top 500 Contributor
Posts 2

Hey  - thank you both for the quick answers. I would like to give the flash-solution a try.

@Dave: would you mind sending me the functional timer and sample script you mentioned in the other thread?

Regards

T.

Top 10 Contributor
Posts 2,031

Sure. The zip including the flash file and a demo script can be downloaded from here:

http://www.millisecond.com/community/members/Dave/files/ToH_5F00_Rev2_5F00_Timer.zip.aspx

Let me know how that goes.

~Dave

"To understand recursion, you must first understand recursion."  - Unknown Zen Master

Top 10 Contributor
Posts 2,031

So, how has this been working out for you? I'd appreciate if you took the time to report your experiences here -- after all, they might be helpful for other users in the future. If you've come up with an entirely different approach that would be interesting to hear, too.

Thanks,

~Dave

"To understand recursion, you must first understand recursion."  - Unknown Zen Master

Page 1 of 1 (6 items) | RSS
Powered by Community Server (Non-Commercial Edition), by Telligent Systems