Random Time Interval Generation as task for Inquisit


Author
Message
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: 103K

You can do that using <values> and/or <expressions> as well as a bit of conditional logic via event attribiutes (/ontrialbegin, /ontrialend, etc.).


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

Yes, I know that.



I have something like that:


<trial task>
/ ontrialbegin = [if(trial.task.trialcount==0)values.start=script.elapsedtime
    else values.start=values.timeoflastresponse]
/ ontrialbegin = [values.bcount = 0]
/ ontrialend = [values.timeoflastresponse=script.elapsedtime]
/ ontrialend = [values.timebetweenresponses=values.timeoflastresponse-values.start]
/ ontrialend = [values.bcount = what should I type here?]
/ stimulustimes = [0 = start]
/ validresponse = ("b")
/ responsetime = 0
/ branch = [trial.task]
</trial>


But don't know what to write in place of "what..."


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

<trial task>
/ ontrialbegin = [if(trial.task.trialcount==0)values.start=script.elapsedtime
    else values.start=values.timeoflastresponse]
/ ontrialbegin = [values.bcount = 0]
/ ontrialend = [values.timeoflastresponse=script.elapsedtime]
/ ontrialend = [values.timebetweenresponses=values.timeoflastresponse-values.start]
/ ontrialend = [values.bcount = what should I type here?]
/ stimulustimes = [0 = start]
/ validresponse = ("b")
/ responsetime = 0
/ branch = [trial.task]
</trial>


#1: You *don't* want to reset that value to zero in every trial. You'll want to reset it at the beginning of a block (if at all).


<trial task>
/ ontrialbegin = [if(trial.task.trialcount==0)values.start=script.elapsedtime
    else values.start=values.timeoflastresponse]
/ ontrialbegin = [values.bcount = 0]
/ ontrialend = [values.timeoflastresponse=script.elapsedtime]
/ ontrialend = [values.timebetweenresponses=values.timeoflastresponse-values.start]
/ ontrialend = [values.bcount = what should I type here?]
/ stimulustimes = [0 = start]
/ validresponse = ("b")
/ responsetime = 0
/ branch = [trial.task]
</trial>


#2: Simply increase it by one:


/ontrialend = [values.bcount += 1]


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search