AAT - including final response as the correct response, including error message


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K
The initial response is recorded in values.initialresponse. Its correctness is stored in values.correct. Both happens in the respective <trial> elements. E.g.

<trial AAT_1>
...
/ iscorrectresponse = [(values.expcondition == 1 && trial.AAT_1.response == "forward") ||
                                (values.expcondition == 2 && trial.AAT_1.response == "back")]
...
/ ontrialend = [values.correct = trial.AAT_1.correct]
...
/ ontrialend = [if (trial.AAT_1.response == "forward") values.initialresponse = "PUSH"
                        else values.initialresponse = "PULL"]
</trial>

The final response is recorded in values.finalresponse. That happens in the "increase" and "decrease" <trial> elements:

<trial increase>
...
/branch = [if (joystick.y >= 1000)
                {values.joystick_y = joystick.y; values.endtime = script.elapsedtime; values.finalresponse = "PULL"; trial.endincrease}]
...
</trial>

<trial decrease>
...
/branch = [if (joystick.y <= -1000)
                {values.joystick_y = joystick.y; values.endtime = script.elapsedtime; values.finalresponse = "PUSH"; trial.enddecrease}]
,,,
</trial>

<trial endincrease> or respectively <trial endincrease> is then run as the final trial in that sequence. You would put your evaluation of the final response as well as the display of the error message in those two <trial> elements -- <trial endincrease> and <trial enddecrease>. The logic would be largely identical to the logic outlined above dealing with the initial response.

becgwin
becgwin
Guru (7.1K reputation)Guru (7.1K reputation)Guru (7.1K reputation)Guru (7.1K reputation)Guru (7.1K reputation)Guru (7.1K reputation)Guru (7.1K reputation)Guru (7.1K reputation)Guru (7.1K reputation)
Group: Forum Members
Posts: 53, Visits: 313
Hi,

I need to adapt the AAT joystick script to nominate the final response as the correct response (instead of the initial response - although I still need the IR recorded) and also to give an error message after the completion of the trial (real and practice) if the participant pushed/pulled incorrectly.  I will then repeat the trial.

While I can work out how to insert an error message within the trial when the IR is the correct response (based on the practice trials), I am not sure how to do this after the trial has ended. I am also having trouble working out how to swap the correct response from the IR to the final response as I can't  see where the correct response is set in the script.

Can you please give me some tips? 

Thanks very much.

Rebecca

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search