Problems about inserting a timer in CCT task


Author
Message
EM9444
EM9444
Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)
Group: Forum Members
Posts: 2, Visits: 5
I am doing a project investigating risk-taking using the Columbia Card Task (delayed). I want to insert a timer in the task but I have encountered the following problems:
1) I don't know how to reset the timer per gameround. When I type / resetrate = trial, it doesn't work since the trials are defined as <trial getcondition>, <trial pickcard> and <trial turnover>. It will reset when I pick the cards and press the button "turnover"
2) I want to know how to make all the cards in each round turn over when time is out

Thank you!
Attachments
ColumbiaCardTask_Delay.iqx (295 views, 59.00 KB)
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
#1: Set the clock's /resetrate to block and reset the timer at the start of each round, i.e., in <trial getcondition>:

<trial getcondition>
/ ontrialbegin = [list.pickcardresponses.clearitems(); list.pickcardresponses.reset();
    clock.timer.resettime(); ]
...
</trial>

#2: You need to define a /timeout for <trial pickcard>. You need to set the available time to 1000 at the start of each round (in <trial getcondition>. You need to subtract the latency of <trial pickcard> /ontrialend. If no response occurs -- i.e. the trial timed out -- invoke <trial turncard>.

See the attached file for details.

Attachments
ColumbiaCardTask_Delay_rev.iqx (260 views, 60.00 KB)
EM9444
EM9444
Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)Associate Member (283 reputation)
Group: Forum Members
Posts: 2, Visits: 5
Thank you so much!!!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search