Ending a session once a participants gives a wrong answer


Author
Message
s.limmer
s.limmer
New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)
Group: Forum Members
Posts: 3, Visits: 12
Hey,
I have the following problem. Within my experiment, I want to exclude people that are suffering from colorblindness. Therefore, I want to terminate the session by redirecting them to a page stating they did not meet the inclusion criteria. I tried to use the stop function, but now Inquisit quits immediately when entering the color check. It now quits even before I enter any digit. I think something is wrong with my condition, but I cannot figure out what exactly it is. Any help would be really appreciated :)

<picture colorblidness>
<picture colorblidness>
/items = ("colorblidness_check.png")
/ position = (50%, 50%)
/ size = (75%, 75%)
</picture>

<openended colorCheck>
/ stimulustimes = [0 = colorblidness; 3000 = text.colorQ; 50=colorQ1]
/ validresponse = (anyresponse)
/ correctresponse = (74)
/ beginresponsetime = 5000
/ stop = [
    openended.colorCheck.responsetext != 74
]
</openended>


<text colorQ>
/ items = ("Please fill in the presented two-digit number:")
/ position = (50%, 40%)
</text>

<text colorQ1>
/ items = ("Here we want to check whether you can see the correct number.
Please look at the picture carefully.")
/ position = (45%, 10%)
</text>

<block testtrialcolor>
/trials = [1= openended.colorCheck]
/preinstructions = (page.welcome, page.consent)
</block>


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: 12K, Visits: 83K
s.limmer - 5/25/2022
Hey,
I have the following problem. Within my experiment, I want to exclude people that are suffering from colorblindness. Therefore, I want to terminate the session by redirecting them to a page stating they did not meet the inclusion criteria. I tried to use the stop function, but now Inquisit quits immediately when entering the color check. It now quits even before I enter any digit. I think something is wrong with my condition, but I cannot figure out what exactly it is. Any help would be really appreciated :)

<picture colorblidness>
<picture colorblidness>
/items = ("colorblidness_check.png")
/ position = (50%, 50%)
/ size = (75%, 75%)
</picture>

<openended colorCheck>
/ stimulustimes = [0 = colorblidness; 3000 = text.colorQ; 50=colorQ1]
/ validresponse = (anyresponse)
/ correctresponse = (74)
/ beginresponsetime = 5000
/ stop = [
    openended.colorCheck.responsetext != 74
]
</openended>


<text colorQ>
/ items = ("Please fill in the presented two-digit number:")
/ position = (50%, 40%)
</text>

<text colorQ1>
/ items = ("Here we want to check whether you can see the correct number.
Please look at the picture carefully.")
/ position = (45%, 10%)
</text>

<block testtrialcolor>
/trials = [1= openended.colorCheck]
/preinstructions = (page.welcome, page.consent)
</block>


Well, you're stopping the openended before it can do anything, the /stop condition simply does not belong there. Also, you're not actually stopping the experiment, just the openended, so this cannot possibly do what you want it to do. Instead you'll want to do something like this:

<picture colorblidness>
/items = ("colorblidness_check.png")
/ position = (50%, 50%)
/ size = (75%, 75%)
</picture>

<openended colorCheck>
/ stimulustimes = [0 = colorblidness; 3000 = text.colorQ; 50=colorQ1]
/ validresponse = (anyresponse)
/ correctresponse = (74)
/ beginresponsetime = 5000
/ branch = [
    if (openended.colorCheck.response != 74) {
        return trial.exclude;
    }
]
</openended>

<trial exclude>
/ ontrialend = [
    script.abort(true);
]
/ stimulusframes = [1=exclusionmessage]
/ validresponse = (0)
/ trialduration = 5000
</trial>

<text exclusionmessage>
/ items = ("Unfortunately you do not meet the inclusion criteria for this study. ~nThe program will exit automatically in five seconds.")
/ size = (60%, 30%)
</text>

<text colorQ>
/ items = ("Please fill in the presented two-digit number:")
/ position = (50%, 40%)
</text>

<text colorQ1>
/ items = ("Here we want to check whether you can see the correct number.
Please look at the picture carefully.")
/ position = (45%, 10%)
</text>

<block testtrialcolor>
/trials = [1= openended.colorCheck]
/ preinstructions = (page.welcome, page.consent)
</block>


s.limmer
s.limmer
New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)New Member (10 reputation)
Group: Forum Members
Posts: 3, Visits: 12
Hey Dave,
thank you so much! This works perfectly :). 

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search