Adding error message to IAT if participant responds too quickly


Author
Message
crstevenson
crstevenson
Associate Member (187 reputation)Associate Member (187 reputation)Associate Member (187 reputation)Associate Member (187 reputation)Associate Member (187 reputation)Associate Member (187 reputation)Associate Member (187 reputation)Associate Member (187 reputation)Associate Member (187 reputation)
Group: Forum Members
Posts: 14, Visits: 66
Hi,

I'd like to let participants know to slow down if they're responding to trials too quickly. With your help, I've been able to do this at the trial level, but I would like to actually do it at the block level instead, so that this message only appears for certain blocks. I've modified my script (see below) but for some reason nothing is happening - no error message shows up at all. Is there a better way to do this, or a way I can make this work? Thanks!

I've added this (bolded) to my block elements:

<block compatiblepractice_AFArts_WMMath>
/ bgstim = (targetBleftmixed, attributeBleft, targetArightmixed, attributeAright)
/ trials = [
    1,3,5,7,9,11,13,15,17,19= random(targetBleft, targetAright);
    2,4,6,8,10,12,14,16,18,20 = random(attributeBL, attributeAR)]
/ errormessage = true(error,200)
/ responsemode = correct
/ ontrialend = [
    if(block.compatiblepractice_AFArts_WMMath.latency <= 10000 && block.compatiblepractice_AFArts_WMMath.currenttrialnumber != 1 && script.currenttrial != "toofast") {
        values.sum1a += block.compatiblepractice_AFArts_WMMath.latency;
        values.n1a += 1;
        values.ss1a += (block.compatiblepractice_AFArts_WMMath.latency * block.compatiblepractice_AFArts_WMMath.latency);
        values.n_correct += block.compatiblepractice_AFArts_WMMath.correct;
    };
    
    if (block.compatiblepractice_AFArts_WMMath.latency < parameters.toofastlatency) {
        return trial.toofast;
    };

    if(block.compatiblepractice_AFArts_WMMath.latency < 300 && script.currenttrial != "toofast") {
        list.RT300.appenditem(1);
    } else {
        list.RT300.appenditem(0);
    };
]
</block>

and for reference, these are the other attributes called in that line:

<parameters>
/ toofastlatency = 300
/showsummaryfeedback = false
/ISI = 250
</parameters>

<trial toofast>
/ stimulusframes = [1=toofasttxt]
/ validresponse = (0)
/ trialduration = 5000
/ recorddata = false
/ posttrialpause = parameters.ISI
</trial>

<text toofasttxt>
/ items = ("You're going too fast. Please go as fast as you can, but try to respond as accurately as possible.")
/ txcolor = red
</text>
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Reading This Topic

Explore
Messages
Mentions
Search