Group: Forum Members
Posts: 10,
Visits: 10
|
My question concerns the AAT I got from the millisecond database. I would like to adjust some features, but I cannot figure out how it would work. The original task consists of pushing&pulling trials with a zooming (decrease&increase) feature. Also, the participant is able to change its movement during the trial, and the trial finishes when the correct response to the stimulus is given. What I want: Pushing&sideway movement trials, with a zooming (decrease) feature when pp pushes, however, the size of the pic should stay the same if a pp moves the joystick sideways. Also, and thats the thing that doesnt work, pp should be able to change the movement until the correct response is given to the specific stimulus (happy= target 'H'versus angry=target 'A' face).
I would love some help with my wishes... Thank you so much in advance. And if you need more information, please let me know.
This is part of the script I have (adjusted) until now:
<trial practicetrial_A> /ontrialbegin = [values.targetformat = "A"] / ontrialbegin = [values.selectpracticepicture = 1] / ontrialbegin = [values.starttime = script.elapsedtime; values.endtime = 0] / ontrialbegin = [picture.practicetarget.height = values.startheight_A] / ontrialbegin = [values.completeRT = 0; values.changedirection = 0; values.finalresponse=""] / stimulusframes = [1 = practicetarget] / validresponse = (left, forward) / iscorrectresponse = [(trial.practicetrial_A.response == "forward")] / errormessage = true(error,0) / ontrialend = [values.joystick_y = joystick.y] / ontrialend = [values.joystick_x = joystick.x] / ontrialend = [values.joystick_change = abs(values.joystick_y)] /ontrialend = [values.trialcode = "practicetrial_A"] /ontrialend = [values.RT = trial.practicetrial_A.latency] /ontrialend = [values.correct = trial.practicetrial_A.correct] /ontrialend = [values.stimulus = picture.practicetarget.currentitem] /ontrialend = [if (trial.practicetrial_A.response == "forward") values.initialresponse = "PUSH" else values.initialresponse = "SIDE"] / branch = [if (trial.practicetrial_A.response == "forward") trial.practicedecrease else trial.practicesame] / recorddata = false </trial>
<trial practicetrial_B> /ontrialbegin = [values.targetformat = "H"] /ontrialbegin = [values.starttime = script.elapsedtime; values.endtime = 0] / ontrialbegin = [values.repeat = 0] / ontrialbegin = [values.selectpracticepicture = 2] / ontrialbegin = [picture.practicetarget.height = values.startheight_B] / ontrialbegin = [values.completeRT = 0; values.changedirection = 0; values.finalresponse=""] / stimulusframes = [1 = practicetarget] / validresponse = (left, forward) / iscorrectresponse = [(trial.practicetrial_B.response == "left")] / errormessage = true(error,0) /ontrialend = [values.joystick_y = joystick.y] /ontrialend = [values.joystick_x = joystick.x] /ontrialend = [values.joystick_change = abs(values.joystick_y)] /ontrialend = [values.trialcode = "practicetrial_B"] /ontrialend = [values.RT = trial.practicetrial_B.latency] /ontrialend = [values.correct = trial.practicetrial_B.correct] /ontrialend = [values.stimulus = picture.practicetarget.currentitem] /ontrialend = [if (trial.practicetrial_B.response == "forward") values.initialresponse = "PUSH" else values.initialresponse = "SIDE"] / branch = [if (trial.practicetrial_B.response == "forward") trial.practicedecrease else trial.practicesame] /recorddata = false </trial>
*********ZOOM FEATURE:
#angry trials=correct - forward push - picture decreases
<trial practicedecrease> /ontrialbegin = [if (values.targetformat == "H") trial.practicedecrease.insertstimulustime(text.error, 0)] /ontrialbegin = [picture.practicetarget.height = picture.practicetarget.height - values.joystick_change/expressions.ratio_joystickchangeperassignedpixel] /stimulusframes = [1 = eraser, practicetarget] /validresponse = (change) /ontrialend = [values.joystick_change = abs(abs(values.joystick_y) - abs(joystick.y))] /ontrialend = [trial.practicedecrease.resetstimulusframes()] /branch = [if (script.subjectid == "monkey") {values.endtime = script.elapsedtime; values.finalresponse = "PUSH"; trial.intertrialinterval}] /branch = [if (joystick.y <= -1000) {values.joystick_y = joystick.y; values.endtime = script.elapsedtime; values.finalresponse = "PUSH"; trial.enddecrease_practice}] /branch = [if (joystick.y <= values.joystick_y) {values.joystick_y = joystick.y; trial.practicedecrease}] /branch = [if (joystick.y > values.joystick_y) {values.joystick_y = joystick.y; values.changedirection += 1; trial.practicesame}] / recorddata = false </trial>
**************
#happy trials=correct - left joystick movement - same picture size
<trial practicesame> /ontrialbegin = [if (values.targetformat == "A") trial.practicesame.insertstimulustime(text.error, 0)] /ontrialbegin = [picture.practicetarget.height = values.startheight_A] /stimulusframes = [1 = practicetarget] /validresponse = (change) /ontrialend = [trial.practicesame.resetstimulusframes()] /branch = [if (script.subjectid == "monkey") {values.endtime = script.elapsedtime; values.finalresponse = "SIDE"; trial.intertrialinterval}] /branch = [if (joystick.x <= -1000) {values.joystick_x = joystick.x; values.endtime = script.elapsedtime; values.finalresponse = "SIDE"; trial.endsame_practice}] /branch = [if (joystick.x <= values.joystick_x) {values.joystick_x = joystick.x; trial.practicesame}] /branch = [if (joystick.x > values.joystick_x) {values.joystick_x = joystick.x; values.changedirection += 1; trial.practicedecrease}] /recorddata = false </trial>
********************************************************************************************************
Note: trials show the last size of the picture <trial enddecrease_practice> /ontrialbegin = [picture.practicetarget.height = picture.practicetarget.height - values.joystick_change/expressions.ratio_joystickchangeperassignedpixel] /stimulusframes = [1 = eraser, practicetarget] /timeout = 0 /branch = [trial.joystickrest] /recorddata = false </trial>
<trial endsame_practice> /ontrialbegin = [picture.practicetarget.height = values.startheight_A] /stimulusframes = [1 = practicetarget] /timeout = 0 /branch = [trial.joystickrest] /recorddata = false </trial>
|