Millisecond Forums

tablet n-back task

https://forums.millisecond.com/Topic21840.aspx

By moon3 - 6/13/2017

Dear Dave,

thank you for answer so quickly yesterday to one problem. Today, another participant, cannnot open the training with her Mac and she wants to do it in her tablet. I programmed the task in order to do it in a computer. Each participant when they thought the stimuli is the one as n nack in the sequence they need to press "A". What should I do in order that she can do it in the tablet and I can record her data? Do I need the next code and that's all? 

<text touchscreenInstruct1>
/ items = ("General Note on Touchscreen Usage
for this Task:")
/ fontstyle = ("Arial", 5%, true, false, false, false, 5, 1)
/ position = (50%, 20%)
/ txbgcolor = black
/ txcolor = white
/ size = (80%, 20%)
/ vjustify = center
</text>
<text touchscreenInstruct2>
/ items = ("All necessary response buttons/keys will be provided at the bottom of your screen.
For example, here you see the <SPACEBAR>.
Tap it to continue to read instructions.")
/ fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
/ position = (50%, 50%)
/ txbgcolor = black
/ txcolor = white
/ size = (70%, 30%)
/ vjustify = center
</text>
<trial touchscreenInstruct>
/ skip = [
!computer.touch || computer.haskeyboard;
]
/ stimulusframes = [1 = touchscreenInstruct1, touchscreenInstruct2]
/ validresponse = (57)
/ recorddata = false
</trial>

Thank you in advance,




By Dave - 6/14/2017

moon3 - Wednesday, June 14, 2017
Dear Dave,

thank you for answer so quickly yesterday to one problem. Today, another participant, cannnot open the training with her Mac and she wants to do it in her tablet. I programmed the task in order to do it in a computer. Each participant when they thought the stimuli is the one as n nack in the sequence they need to press "A". What should I do in order that she can do it in the tablet and I can record her data? Do I need the next code and that's all? 

<text touchscreenInstruct1>
/ items = ("General Note on Touchscreen Usage
for this Task:")
/ fontstyle = ("Arial", 5%, true, false, false, false, 5, 1)
/ position = (50%, 20%)
/ txbgcolor = black
/ txcolor = white
/ size = (80%, 20%)
/ vjustify = center
</text>
<text touchscreenInstruct2>
/ items = ("All necessary response buttons/keys will be provided at the bottom of your screen.
For example, here you see the <SPACEBAR>.
Tap it to continue to read instructions.")
/ fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
/ position = (50%, 50%)
/ txbgcolor = black
/ txcolor = white
/ size = (70%, 30%)
/ vjustify = center
</text>
<trial touchscreenInstruct>
/ skip = [
!computer.touch || computer.haskeyboard;
]
/ stimulusframes = [1 = touchscreenInstruct1, touchscreenInstruct2]
/ validresponse = (57)
/ recorddata = false
</trial>

Thank you in advance,





Under Inquisit 5, touch controls "emulating" the keys will generally be displayed automatically. As for the the code that modifies the instructions depending on whether the device has a physical keyboard or not, merely pasting that into your script is not enough. That code has to also be run. You can see how that's done by looking at any of the Inquisit 5 n-back scripts available in the library.

Hope this helps.