Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
»
How to give feedback based on block trial success
How to give feedback based on block trial success
Post Reply
Like
19
How to give feedback based on block trial success
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
rburtonaus
rburtonaus
posted 11 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 8,
Visits: 23
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.
Reply
Like
19
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
<% 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.
Edited
11 Years Ago by
Dave
Reply
Like
15
rburtonaus
rburtonaus
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 8,
Visits: 23
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);]
Reply
Like
17
Dave
Dave
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 108K
<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?
Reply
Like
18
rburtonaus
rburtonaus
posted 11 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 8,
Visits: 23
The update solved the problem!
Thanks for your help
Reply
Like
16
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
19
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search