Millisecond Forums

How to continue after Likert questions?

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

By tomeek - 3/13/2013

Hi, I have this:



*********************************************


            Items


*********************************************


<item nervousquestions>


    /1 =     "Jak bardzo obrzydza Cię poniższe stwierdzenie?"


    /2 =     "Jak bardzo obrzydza Cię poniższe stwierdzenie?"


    /3 =     "Jak bardzo obrzydza Cię poniższe stwierdzenie?"


</item>



<item stories>


    /1 =     "Widzisz osobę, która polewa ketchupem lody waniliowe i je zjada."


    /2 =     "Masz zamiar wypić szklankę mleka, kiedy wyczuwasz, że jest zepsute."


    /3 =     "Widzisz larwy na kawałku mięsa na zewnątrz w koszu na śmieci."


</item>


*********************************************


            text


*********************************************


<text rsq_stories>


/items = stories


/ txbgcolor =  = (238, 238, 233)


/ fontstyle = ("calibri", 3.5%, true, false, false, false, 5, 0)


/ size = (75%,30%)


/ vjustify = center


/ position = (50%, 20%)


</text>


<text rsq_nervousquestions >


/ items = nervousquestions


/ position = (50%,65%)


/ size = (90%,10%)


/ fontstyle = ("calibri", 3.5%, true, false, false, false, 5, 0)


</text>



*********************************************


            likert options


*********************************************


<likert rsq_nervouslikert>


/ anchors = [1 = "w ogóle"; 2 = "lekko" 3 = "bardzo"]


/ anchorwidth = 100


/ mouse= true


/ numpoints = 3


/ position = (50%,80%)


/ fontstyle = ("calibri", 2.5%, true, false, false, false, 5, 0)


/ stimulusframes = [1 = rsq_stories, rsq_nervousquestions]


/ showmousecursor = true


</likert>


*********************************************


            Blocks


*********************************************


<block rsq>


/ trials = [1-3=noreplace(rsq_nervouslikert)]


</block>


*********************************************


            EXPT


*********************************************


<expt rsq>


/ blocks = [1 = rsq]


</expt>




and I would like to go after that to this:



-------------------------------------------------------------------------------------------------------------


------------------------------------------------BLOK------------------------------------------------------


-------------------------------------------------------------------------------------------------------------



<expressions>


/ size = 100%*(trial.drawbar.responsey/display.height)


/ vpos = 1px*trial.drawbar.responsey


</expressions>



<picture bar>


/ items = ("bar.bmp")


/ size = (expressions.size, expressions.size)


/ hposition = 50%


/ vposition = expressions.vpos


/ erase = false


</picture>



<shape blank>


/ shape = rectangle


/ size = (100%, 100%)


/ color = white


/ erase = false


</shape>



<trial drawbar>


/ stimulusframes = [1=blank, bar]


/ inputdevice = mousekey


/ validresponse = (mousemove)


/ branch = [trial.drawbar]


/ numframes = 1


/ recorddata = true


</trial>



<block myblock>


/ trials = [1=drawbar]


</block>




but program closing itself after Likert :/ 

By Dave - 3/13/2013


<expt rsq>

/ blocks = [1 = rsq; 2 = myblock]

</expt>


By tomeek - 3/14/2013

Thank you:) I'm working on next "levels", so I'll ask more questions later ;)

By tomeek - 3/14/2013

Now I have this here: 





<page intro1>


^^


ZAJĘCIE ZASOBÓW MANUALNYCH A PAMIĘĆ OBIEKTÓW.^^


^^


XXX XXX


^^


pod kierunkiem


^^


dr XXX XXX^^


</page>


*********************************************


            Items


*********************************************


<item question>


    /1 =     "Jak bardzo obrzydza Cię poniższe stwierdzenie?"


    /2 =     "Jak bardzo obrzydza Cię poniższe stwierdzenie?"


    /3 =     "Jak bardzo obrzydza Cię poniższe stwierdzenie?"


</item>



<item stories>


    /1 =     "Widzisz osobę, która polewa ketchupem lody waniliowe i je zjada."


    /2 =     "Masz zamiar wypić szklankę mleka, kiedy wyczuwasz, że jest zepsute."


    /3 =     "Widzisz larwy na kawałku mięsa na zewnątrz w koszu na śmieci."


</item>


*********************************************


            text


*********************************************


<text rsq_stories>


/items = stories


/ txbgcolor =  = (238, 238, 233)


/ fontstyle = ("calibri", 3.5%, true, false, false, false, 5, 0)


/ size = (75%,30%)


/ vjustify = center


/ position = (50%, 20%)


</text>



<text rsq_question >


/ items = question


/ position = (50%,65%)


/ size = (90%,10%)


/ fontstyle = ("calibri", 3.5%, true, false, false, false, 5, 0)


</text>


*********************************************


            likert options


*********************************************



<likert rsq_questionlikert>


/ anchors = [1 = "w ogóle"; 2 = "lekko" 3 = "bardzo"]


/ anchorwidth = 100


/ mouse= true


/ numpoints = 3


/ position = (50%,80%)


/ fontstyle = ("calibri", 2.5%, true, false, false, false, 5, 0)


/ stimulusframes = [1 = rsq_stories, rsq_question]


/ showmousecursor = true


</likert>


*********************************************


            Blocks


*********************************************


<block rsq>


/ trials = [1-3=noreplace(rsq_questionlikert)]


</block>


*********************************************


            EXPT


*********************************************


<expt rsq>


/ preinstructions = (intro1)


/ blocks = [1 = rsq]


/ preinstructions = (intro2)


/ blocks = [1 = myblock]


/ postinstructions = (end)


</expt>


-------------------------------------------------------------------------------------------------------------


------------------------------------------------BLOK------------------------------------------------------


-------------------------------------------------------------------------------------------------------------



<page intro2>


Teraz Twoim zadaniem jest przesunięcie bloku po Twojej prawej stronie do przodu tak daleko, aż pojawi się komunikat podziękowania.


</page>



<expressions>


/ size = 100%*(trial.drawbar.responsey/display.height)


/ vpos = 1px*trial.drawbar.responsey


</expressions>



<picture bar>


/ items = ("bar.bmp")


/ size = (expressions.size, expressions.size)


/ hposition = 50%


/ vposition = expressions.vpos


/ erase = false


</picture>



<shape blank>


/ shape = rectangle


/ size = (100%, 100%)


/ color = white


/ erase = false


</shape>



<trial drawbar>


/ stimulusframes = [1=blank, bar]


/ inputdevice = mousekey


/ validresponse = (mousemove)


/ branch = [trial.drawbar]


/ numframes = 1


/ recorddata = true


</trial>



<block myblock>


/ trials = [1=drawbar]


</block>



<page end>  


^^KONIEC BADANIA.^^^


Dziękuję za udział w badaniu.^^



Press ENTER to finish.


</page>



---------------------------------------------------------------------------------------------------------------------------------------------------------


When the black block will reach the top of the screen I need to see end screen to finish this research. Where I need to put something to control the end of the black block?

By Dave - 3/14/2013

You might want to work with a properly defined /stop attribute.


Before you do that, though, please first work through the various tutorials in the Inquisit documentation to acquire the basic ins and outs of Inquisit's syntax. There are a number of issues in the code you posted which you should be able to spot, fix and avoid after doing so.

By tomeek - 3/23/2013


<page end>  


^^KONIEC BADANIA.^^^


Dziekuje za udzial w badaniu.^^



Press ENTER to finish.


</page>



<expt rsq>


/ blocks = [1 = myblock]


/ postinstructions = (end)


</expt>



<expressions>


/ size = 100%*(trial.drawbar.responsey/display.height)


/ vpos = 1px*trial.drawbar.responsey


</expressions>



<picture bar>


/ items = ("bar.bmp")


/ size = (expressions.size, expressions.size)


/ hposition = 50%


/ vposition = expressions.vpos


/ erase = false


</picture>



<shape blank>


/ shape = rectangle


/ size = (100%, 100%)


/ color = white


/ erase = false


</shape>



<trial drawbar>


/ stimulusframes = [1=blank, bar]


/ inputdevice = mousekey


/ validresponse = (mousemove)


/ branch = [trial.drawbar]


/ numframes = 1


/ recorddata = false



</trial>



<block myblock>


/ trials = [1=drawbar]


/ blockfeedback = (latency)


/ stop = ????


</block>




I already tried any / STOP. How to stop this when bar will touch top of the screen? 

By Dave - 3/23/2013

/ stop = ????


/ stop = [picture.bar.vposition==0]

By tomeek - 3/23/2013

Why when I set ==100 than it doesn't work on the bottom?

By Dave - 3/23/2013

Because that's not the bottom of the screen.


Add


 <text debug>
/ items = ("<%picture.bar.vposition%>")
/ erase = false
</text>


to your script, display it in your trial and see for yourself.

By tomeek - 3/26/2013

Nothing changed. It still works like before. Even when I changing value of vposition :(

By Dave - 3/26/2013

If you do it right, it'll work just fine. You need to (a) consider display.height -1 since you are working in pixel coordinates and (b) may want to take the changing size of the object into account, i.e., use some more elementary math.