Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 108K
|
Now I would like them to receive also a feedback page that informs them about the total number of points won across the 3 blocks. How can I achieve this? Thank you. In the same way you provide the per-block feedback. Set up <values>, <text>, <trial> and <block> elements displaying the relevant metrics and run the resulting block after your 3 game blocks.
|
|
|
Anamaria
|
|
Group: Forum Members
Posts: 13,
Visits: 1
|
Hi Dave, I corrected the calculations and managed to provide paricipants with a block feedback about their score. Now I would like them to receive also a feedback page that informs them about the total number of points won across the 3 blocks. How can I achieve this? Thank you. Ana ********** blocks **************************** <block test_gametask1> / screencolor = (0,0,0) / preinstructions = (testfase_gametask1) / trials = [1-12 = random (CSneu, CSpun); 13 = feedback] / blockfeedback = (meanlatency) </block>
<block test_gametask2> / screencolor = (0,0,0) / preinstructions = (testfase_gametask2) / trials = [1-12 = random (CSneu, CSpun); 13 = feedback] / blockfeedback = (meanlatency) </block>
<block test_gametask3> / screencolor = (0,0,0) / preinstructions = (testfase_gametask3) / trials = [1-12 = random (CSneu, CSpun); 13 = feedback] / blockfeedback = (meanlatency) </block>
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 108K
|
So what element shall I use so that the final score displayed sums up only my correct responses during the task and not all my responses? It's not a matter of display. Your calculations must be wrong. Check them.
|
|
|
Anamaria
|
|
Group: Forum Members
Posts: 13,
Visits: 1
|
Hi again Dave, Uff my happiness did not last long as I have just realized that the score displayed is the sum of scores for all trials, and not only for the trials when participants win 10 points as a result of their fast RTs. So if I run the 12-trial block, I end up with a score of -120, although I have just lost 20 points during the task (as displayed during the trial feedback). So what element shall I use so that the final score displayed sums up only my correct responses during the task and not all my responses? I would appreciate if you can point me in a direction and sorry for bothering you with my beginner questions. Regards, Ana
|
|
|
Anamaria
|
|
Group: Forum Members
Posts: 13,
Visits: 1
|
Perfect, I ran the task again and now it displays the score feedback :) Sure, I will study the tutorials more carefully. Thanks a lot for your guidance! Ana
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 108K
|
********** blocks ************************* <block intro_gametask> / screencolor = (0,0,0) / preinstructions = (intro_gametask) / trials = [1-12 = random (CSneu, CSpun)] / trials = [1 = (feedback)] / blockfeedback = (meanlatency, correct) </block> You've defined the /trials attribute twice. That's not allowed. The second definition has invalid syntax, too. See the docs for correct syntax examples. <block intro_gametask> / screencolor = (0,0,0) / preinstructions = (intro_gametask) / trials = [1-12 = random (CSneu, CSpun) feedback] / blockfeedback = (meanlatency, correct) </block> The syntax here is also invalid. It should be / trials = [1-12 = random (CSneu, CSpun); 13 = feedback] obviously. I recommend you revisit the tutorials included in the Inquisit documentation to get more familiar the basic elements and their correct syntax. Regards, ~Dave
|
|
|
Anamaria
|
|
Group: Forum Members
Posts: 13,
Visits: 1
|
Hi Dave, Ok, so now I tried to define those elements according to your advice. If I include two trial attributes inside the block, I receive a warning saying that the trial attribute of the block element is unassigned and could not be located.
<values> / score=0 </values>
<text feedback> / items= ("value = <% values.score %>") </text> <trial feedback> / pretrialpause= 300 / trialcode = "feedback" / responsemode = timeout (2500) / stimulustimes = [0=feedback] / responseinterrupt = trial / posttrialpause= 300 </trial> ********** blocks ************************* <block intro_gametask> / screencolor = (0,0,0) / preinstructions = (intro_gametask) / trials = [1-12 = random (CSneu, CSpun)] / trials = [1 = (feedback)] / blockfeedback = (meanlatency, correct) </block>
However, if I include the feedback inside the same trial attribute of the block (see below), the task plays BUT I do not get any feedback score page at the end of the block.
<block intro_gametask> / screencolor = (0,0,0) / preinstructions = (intro_gametask) / trials = [1-12 = random (CSneu, CSpun) feedback] / blockfeedback = (meanlatency, correct) </block>
What important step am I missing? Thank you again. Ana
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 108K
|
I get a message saying that ''value score'' is invalid. This is presumably due to a typo somewhere in your script. Inspect the element the error message is thrown for. <text score> / items = ("Total score: <% block_introgametask %>") / position = (50%, 5%) </text This does not make sense. You don't want a <text> element to try and display a <block> element. You want the <text> element to display <%values.score%>, you want a <trial> to present said <text> element and a <block> to run said <trial>.
|
|
|
Anamaria
|
|
Group: Forum Members
Posts: 13,
Visits: 1
|
Hi Dave, Thanks, I think I resolved the error feedback. I have one more question: I defined values and used ontrialend in order to calculate how many points participants win during the task. But I get a message saying that ''value score'' is invalid.I have also defined a text score that is meant to be shown to participants at the end of the block, but I get a message that ''block_introgametask is invalid''. Could you help me understand what is missing? My goal is to get inquisit count the +10 points delivered during the block and then show participants a total score feedback at the end of each block.Thank you again for your patience. Ana ***************************************** <values> / score=0 </values> <trial CSrew> / pretrialpause= 700 / trialcode = "CSpun" / validresponse = ("q", "s") / errormessage = (errormessage, 500) / iscorrectresponse = [trial.CSrew.response== "16"] / responsemode = timeout (1500) / stimulustimes = [0= kaderm, CSrew, CSrewS; 100 = eraserm, ?] / responseinterrupt = trial / posttrialpause= 700 / branch=[if (trial.CSrew.meanlatency < 350) trial.points] / branch = [if (trial.CSrew.meanlatency > 350) trial.nopoints] / ontrialend=[values.score = values.score + 10 * trial.CSrew.correct] / ontrialend=[if (trial.CSrew.correct == 1) values.score = values.score + 10] </trial>
<text score> / items = ("Total score: <% block_introgametask %>") / position = (50%, 5%) </text
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 108K
|
Here is a drastically stripped down version of your code: <block myblock> / trials = [1-10=CSrew] </block>
<trial CSrew> / trialcode = "CSrew" / validresponse = ("q", "s") / errormessage = (errormessage, 500) / iscorrectresponse = [trial.CSrew.response== "16"] </trial>
<text errormessage> / items = ("ERROR") </text> Error messages work perfectly fine for me. If they do for you too with this code, you need to re-check your script for mistakes in other places.
|
|
|