Increasing Difficulty; Monetary Incentive Delay task

Hi Jens,

I implemenet this which should cover all possible scenarios and yet I am still getting loss feedback, when I haven’t clicked early and I have clicked on the white square.

if trial_type == "incentive":
    if tooearly == 1 and correct == 0: #clicking too early
        image_feedback = "loss.png"
        this_earnings = -0.2
        feedback_trigger = 5
    elif tooearly == 1 and correct == 1: #clicking too early and the white square
        image_feedback = "loss.png"
        this_earnings = -0.2
        feedback_trigger = 5
    elif tooearly == 0 and correct == 0: #not clicking early but not clicking the white square
        image_feedback = "loss.png"  
        this_earnings = -0.2
        feedback_trigger = 5
    else:
        image_feedback = "win.png" #so the only other option would be a win if they hadn't clicked early but had clicked the white square?
        this_earnings = 0.2
        feedback_trigger = 4

This also didn’t work

if trial_type == "incentive":
    if tooearly == 0 and correct == 1:
        image_feedback = "win.png"
        this_earnings = 0.2
        feedback_trigger = 4 
    elif tooearly == 1 and correct == 1:
        image_feedback = "loss.png"
        this_earnings = -0.2
        feedback_trigger = 5
    elif tooearly == 0 and correct == 0:
        image_feedback = "loss.png"
        this_earnings = -0.2
        feedback_trigger = 5
    elif tooearly == 1 and correct == 0:
        image_feedback = "loss.png"
        this_earnings = -0.2
        feedback_trigger = 5

midEEG.psyexp (58.6 KB)

Mnay thanks,

Seline

Hello

print the values of tooearly and correct to the console

print("tooearly: ", tooearly)
print("correct: ", correct)

This will show you if your win condition is ever met.

Ok, I see that you only distinguish two conditions: win and los, not three: win, loss, too early. I misunderstood you on this point.

Best wishes Jens

Hi Jens,

After much wrangling with the task I have realised that the problem simply was having the code checking for a mouse press (for early click and correct) within the same code component of the Every Frame tab. I have just created another routine which acts as the onset period to the target (the duration of which is randOnset) and now both conditions are recorded correctly. And the correct outcome appears for the feedback.

Thank you so much for all your help above!

Best wishes,

Seline

Dear Seline,

Great thread, and wonderful that you got it working. Would you mind sharing your most recent version with the changes, please?

My best wishes,
Joseph

Hi Seline,

I am interested in using the social incentive delay for a project. Would you be willing to share your condition stimuli files or where you obtained them from? Thanks!

Amy