Millisecond Forums

irregular function

https://forums.millisecond.com/Topic28923.aspx

By vr_uke - 5/4/2020

Hello, everyone,

we have programmed a test which is already in use. by now Now the error has appeared that the test sometimes breaks off after the 20 practice trials. Can anyone help us?

Greetings

beacuse of the size of the uploaded file i had to delete the pictures.
if you need the full data i can try to upload it on a cloud
By Dave - 5/4/2020

vr_uke - 5/4/2020
Hello, everyone,

we have programmed a test which is already in use. by now Now the error has appeared that the test sometimes breaks off after the 20 practice trials. Can anyone help us?

Greetings

beacuse of the size of the uploaded file i had to delete the pictures.
if you need the full data i can try to upload it on a cloud

The script has an abort condition which kicks in if participants fail the practice part: The task ends after practice if the accuracy in the practice block(s) is below the threshold set in parameters.minPracticeACC and the maximum number of practice blocks has been run (parameters.maxPracticeBlocks), i.e. after a maximum of 20 practice trials (ten per block).

<paramaters>
...
/maxPracticeBlocks = 2
/trialsPerPracticeBlock = 10
/minPracticeACC = 0.9
...
</parameters>

<block practice>
/ stop = [
    values.countTrials > parameters.trialsPerPracticeBlock;
]
/ onblockbegin = [
    values.phase = "practice";
    list.ACC.reset();
    values.practiceBlocks += 1;
    values.countTrials = 0;
    picture.stimEraser.skip = true;    
]
/ trials = [1 = trialSelection]
/ branch = [
    if (list.ACC.mean < parameters.minPracticeACC){
        if (values.practiceBlocks >= parameters.maxPracticeBlocks){
            block.prematureEnd;

        } else {
            block.practice;
        };
    };
]

</block>

<block prematureEnd>
/ postinstructions = (end)
/ onblockend = [
    values.failPractice = 1;
    if (!monkey.monkeymode){
        script.abort();        
    };

]
</block>

This is not irregular functioning, the script is doing what it's designed to do.
By vr_uke - 5/4/2020

thank yo