By exusqa - 1/7/2014
Hello!
I am new to Inquisit and am trying to create an experiment that lets participants browse a set of image files (like a magazine). The participants should be able to freely navigate the pages forwards and backwards using the arrow keys and quit whenever they like using another key. The script should record the total duration of the experiment, the total number of keystrokes, as well as the time the participants spent viewing each individual page. That means, using a simplified example, that if I have two image files (a,b) and the user spends 1 minute on file "a", forwards to file "b" spending 3 minutes there, and then goes back to "a" for 1 minute, exiting afterwards, the script will have recorded a total time of 5 minutes, two keystrokes, 2 (=1+1) minutes for file "a" and 3 minutes for file "b". Could anybody advise me on how to implement this or point to an existing script that works similarly?
Thanks!
|
By Dave - 1/7/2014
You would start with something like this
<values> / currentitem = 1 </values>
<text mytext> / items = ("A", "B", "C", "D") / select = values.currentitem </text>
<trial mytrial> / ontrialend = [if (trial.mytrial.response == "203" && values.currentitem > 1) values.currentitem -= 1] / ontrialend = [if (trial.mytrial.response == "205" && values.currentitem < text.mytext.itemcount) values.currentitem += 1] / stimulusframes = [1=mytext] / validresponse = (1,203,205) / branch = [if (trial.mytrial.response != "1") trial.mytrial] </trial>
<block myblock> / trials = [1=mytrial] </block>
and build up from there. Use the arrow keys to navigate and ESC to quit. Please make sure to complete all of the tutorials included in the Inquisit documentation prior to implementing stuff from scratch.
|
|