Remove response from trial


Author
Message
lukasg
lukasg
Partner Member (633 reputation)Partner Member (633 reputation)Partner Member (633 reputation)Partner Member (633 reputation)Partner Member (633 reputation)Partner Member (633 reputation)Partner Member (633 reputation)Partner Member (633 reputation)Partner Member (633 reputation)
Group: Forum Members
Posts: 35, Visits: 103
Hello,

I am attempting to add a text above the response on a trial. Since I failed to do so in the trial during which stimuli are presented, I decided to break up the experiment into several trials. This looks as follows: 1st trial = presentation of stimuli, 2nd trial = digit response box, 3rd trial = color response selection. 

Please let me know if I missed something, and adding text to a stimulus presentation trial is indeed possible. If not, however, my 'solution' runs into the issue of presenting the first response box twice, once as part of the 1st trial, and once as part of the 2nd trial. Therefore, I would like to remove the text box from the 1st trial (stimulus presentation):

<trial trial250>

/ recorddata = false
/ trialduration = 401

/ ontrialbegin = [
    
    // select digit items
    values.dig1 = list.digits.nextvalue;
    values.dig2 = list.digits.nextvalue;
// select target item
values.t = list.t_items.nextvalue;
// select distractor items
values.d1 = list.d_items.nextvalue;
values.d2 = list.d_items.nextvalue;
// select target position
values.t_x = list.t_x.nextvalue;
// select distractor positions
values.d1_x = list.d_x.nextvalue;
values.d2_x = list.d_x.nextvalue;
// select target color
values.t_color = list.t_colors.nextvalue;
// and corresponding response key

// combine digits
    values.correctdigit = concat(values.dig1, values.dig2);

// select distractor colors
values.d1_color = list.d_colors.nextvalue;
values.d2_color = list.d_colors.nextvalue;
    
]

/stimulustimes = [0 = clearscreen; 1 = fixation; 150 = clearscreen; 151 = t, d1, d2 , dig1, dig2; 401 = clearscreen]

/ branch = [openended.digitResponse]

/ ontrialend = [

// reset relevant lists for next trial
list.d_items.reset();
list.d_x.reset();
list.d_colors.reset();
]

</trial>


<openended digitResponse>

/ recorddata = false
/ stimulustimes = [0 = digResp]
/ correctresponse = (values.correctdigit)
/ validresponse = (anyresponse)

/ branch = [if(trial.digitResponse.correct == 1 || trial.digitResponse.correct == 0)trial.colorResponse]

/ ontrialend = [

    // save data
    values.latencyDigit = openended.digitResponse.latency;
    values.digitResponse = openended.digitResponse.response;

    values.digPropCor = openended.digitResponse.percentcorrect;
    values.digLatAvg = openended.digitResponse.meanlatency;
]


</openended>

<text digResp>
/ caption = "Enter the two presented digits"
/ maxchars = 2
/ mask = positiveinteger

</text>



All the best,
Lukas





GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
lukasg - 3 Years Ago
Dave - 3 Years Ago
lukasg - 3 Years Ago
Dave - 3 Years Ago
lukasg - 3 Years Ago
                         You commented out the <expt> element, so blocks are run in...
Dave - 3 Years Ago
                             Thanks for looking into it, this did indeed fix the issue. Silly...
lukasg - 3 Years Ago
                                 One unrelated remark: Assuming all your trials are basically identical...
Dave - 3 Years Ago
                                     Great, this seems much more efficient but it messes up the stimulus...
lukasg - 3 Years Ago
                                         To clarify, on the 'colorResponse' trial, a response field covers...
lukasg - 3 Years Ago
                                             You have not posted any code for the "colorResponse" trial. Please...
Dave - 3 Years Ago
                                             After some trial-and-error I figured the errors only occurs when the...
lukasg - 3 Years Ago
                                                 An <openended> displays a textbox to collect a typed response,...
Dave - 3 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search