Random Time Interval Generation as task for Inquisit


Author
Message
pawelstrojny
pawelstrojny
Guru (6.5K reputation)Guru (6.5K reputation)Guru (6.5K reputation)Guru (6.5K reputation)Guru (6.5K reputation)Guru (6.5K reputation)Guru (6.5K reputation)Guru (6.5K reputation)Guru (6.5K reputation)
Group: Forum Members
Posts: 43, Visits: 76

Thank you!


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: 109K

<values>
/ start = 0
/ timeoflastresponse = 0
/ timebetweenresponses = 0
</values>


<expt LoseFail>
/ blocks = [
                1 = Instruction;
                2 = Task;
                3 = End_Debriefing

            ]
</expt>

***Blocks***

<block instruction>
/ trials = [1=instruction]
</block>

<block task>
/ trials = [1=task]
/ timeout = 10000
</block>

<block end_debriefing>
/ trials = [1=debriefing]
</block>

***Trials***

<trial instruction>
/ stimulusframes = [1=instructions]
/ validresponse = (" ")
/ recorddata = false
</trial>

<trial task>
/ ontrialbegin = [if(trial.task.trialcount==0)values.start=script.elapsedtime
    else values.start=values.timeoflastresponse]
/ ontrialend = [values.timeoflastresponse=script.elapsedtime]
/ ontrialend = [values.timebetweenresponses=values.timeoflastresponse-values.start]

/ stimulustimes = [0 = start]
/ validresponse = ("b")
/ responsetime = 0
/ branch = [trial.task]
</trial>

<trial debriefing>
/ stimulusframes = [1=debriefing]
/ validresponse = (" ")
/ recorddata = false
</trial>

***Items***

<text instructions>
/ items = ("instructions")
/ size = (75%, 75%)
/ hjustify = left
</text>

<text start>
/ items = ("Please push ~"b~" as random as you can")
/ erase = false
/ size = (75%, 75%)
/ hjustify = left
</text>

<text debriefing>
/ items = ("debriefing")
/ size = (75%, 75%)
/ hjustify = left
</text>

<data>
/ columns = [trialnum, values.start, values.timeoflastresponse, values.timebetweenresponses]
</data>


pawelstrojny
pawelstrojny
Guru (6.5K reputation)Guru (6.5K reputation)Guru (6.5K reputation)Guru (6.5K reputation)Guru (6.5K reputation)Guru (6.5K reputation)Guru (6.5K reputation)Guru (6.5K reputation)Guru (6.5K reputation)
Group: Forum Members
Posts: 43, Visits: 76

Hi,


I need to write a simple (?) script in which subjects will be asked to push one button (lets say "b") for some amount of time (lets say 10s = 10000ms) as "randomly"/arrhythmical as possible.


The one and only thing I need from this script is to measure response time of every push


- e.g. if subject pushed 3 times; (1st in t1; 2nd in t2; 3rd in t3)


script should record 3 response times (t1 - start; t2 - t1 and t3 - t2) -


basically I need the time gap between every two reactions.


I tried to write it like below, but I don't know how to make it record every push (not only the first one).


****script*****


<expt LoseFail>
/ blocks = [
                1 = Instruction;
                2 = Task;
                3 = End_Debriefing

            ]
</expt>

***Blocks***

<block instruction>
/ trials = [1=instruction]
</block>

<block task>
/ trials = [1=task]
</block>

<block end_debriefing>
/ trials = [1=debriefing]
</block>

***Trials***

<trial instruction>
/ stimulusframes = [1=instructions]
/ validresponse = (" ")
/ recorddata = false
</trial>

<trial task>
/ stimulustimes = [0 = start]
/ validresponse = ("b")
/ responsetime = 0
/ trialduration = 10000
</trial>

<trial debriefing>
/ stimulusframes = [1=debriefing]
/ validresponse = (" ")
/ recorddata = false
</trial>

***Items***

<text instructions>
/ items = ("instructions")
/ size = (75%, 75%)
/ hjustify = left
</text>

<text start>
/ items = ("Please push "b" as random as you can")
/ erase = false
/ size = (75%, 75%)
/ hjustify = left
</text>

<text debriefing>
/ items = ("debriefing")
/ size = (75%, 75%)
/ hjustify = left
</text>


*********


Could you please help me with that?


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search