Millisecond Forums

How to give feedback based on block trial success

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

By rburtonaus - 4/14/2014

I have 18 blocks of trials. Each block goes for an ever shorter duration. I am trying to provide feedback on which trials were identified with an accuracy of 80% or more. I have tried a variety of different codes with no success. The last one uses the list function:

<page end>
^^^                                  Thank you for participating in this study
^^^                                    You were able to achive 80% for the following durations
<% list.mylist.items%>
^^^            You might like to record this information for future reference
^                       If you have not already completed the Variable stimuli study, please do it now.

<list mylist>

</list>

I used the following instruction to add items to mylist (the second is set (300block) is w:

<block 300block>
/onblockbegin = [values.reach=300]
/skip = [values.skipp==1]
/trials = [1-5 = noreplace(300up, 300down)]
/onblockend = [if(block.600block.percentcorrect<70) list.mylist.insertitem("300 ms", list.mylist.itemcount + 1);]
</block>


Nothing seems to generate a response in the 'page End'  text.
By Dave - 4/14/2014

<% list.mylist.items%>

is not supposed to return anything. The 'items' property is an indexed collection property. You need to specify *which item you want to retrieve* as in e.g.

list.mylist.items.2

for the 2nd item.
By rburtonaus - 4/15/2014

I tried list.mylist.items.1

still nothing
At the end I got the message:
"Expression '600ms' is invalid. Expression contains an unknown element or property name."

I tried "600 ms", '600 ms' and 600 ms

all returned error messages.

I can't seem to add items to the list using 
/onblockend = [list.mylist.insertitem("600 ms", list.mylist.itemcount + 1);]

or 

/onblockend = [if(block.600block.percentcorrect<70) list.mylist.insertitem("300 ms", 1);]

or even

/onblockend = [list.mylist.insertitem("600 ms", 1);]
By Dave - 4/15/2014

<expt>
/ blocks = [1=block1]
</expt>

<block block1>
/ postinstructions = (pg1)
/ onblockend = [list.mylist.insertitem("600 ms", list.mylist.itemcount +1)]
/ trials = [1=mytrial]
</block>

<list mylist>
</list>

<trial mytrial>
/ validresponse = (57)
/ timeout = 1000
</trial>

<page pg1>
<%list.mylist.items.1%>
</page>

works perfectly fine for me in the current Inquisit release (4.0.5.0). Have you made sure your installation is up to date?
By rburtonaus - 4/15/2014

The update solved the problem!

Thanks for your help