error messages


Author
Message
mle77
mle77
Associate Member (145 reputation)Associate Member (145 reputation)Associate Member (145 reputation)Associate Member (145 reputation)Associate Member (145 reputation)Associate Member (145 reputation)Associate Member (145 reputation)Associate Member (145 reputation)Associate Member (145 reputation)
Group: Forum Members
Posts: 3, Visits: 27
Hi, 
I'm trying to add error messages where if the participant clicks before 714ms (before the stimulus appears) they get an error message for too early and different feedback messages for between 714 and 950, 950 and 1400 and 1400+. I've currently branched it like this, but it's not working properly (keeps showing the wrong feedback): 
/ branch = [if (trial.CS1_rightinvalid == 714) trial.tooearly {
values.points += 5
}]
/ branch = [else if (trial.CS1_rightinvalid == 714 && 950) trial.success2 {
values.points += 25
}]
/ branch = [else if (trial.CS1_rightinvalid == 950 && 1400) trial.success1 {
values.points += 15
}]
/ branch = [ else if (trial.CS1_rightinvalid == >1400) trial.tooslow {
values.points += 0
}]


I also wanted to add a total bar (each response has different points). I've put each of the different responses into values and added an expression to tell the points total to add up all the different values. I've added an example below to show how I put the points with the trial because the total bar stays on 0:

<trial success1>
/ ontrialbegin = [if (trial.CS1_leftinvalid >950 <1400) values.points = 15]
/ ontrialbegin = [if (trial.CS1_leftvalid >950 <1400) values.points = 15]
/ ontrialbegin = [if (trial.CS1_rightinvalid >950 <1400) values.points = 15]
/ ontrialbegin = [if (trial.CS1_rightvalid >950 <1400) values.points = 15]
/ ontrialbegin = [if (trial.CS2_leftinvalid >950 <1400) values.points = 15]
/ ontrialbegin = [if (trial.CS2_leftvalid >950 <1400) values.points = 15]
/ ontrialbegin = [if (trial.CS2_rightinvalid >950 <1400) values.points = 15]
/ ontrialbegin = [if (trial.CS2_rightvalid >950 <1400) values.points = 15]
/ timeout = 10000
/ validresponse = (0)
/ stimulusframes = [1 = success1]


Thank you!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
mle77 - 5 Years Ago
Dave - 5 Years Ago
mle77 - 5 Years Ago
                 + x [quote] [b] mle77 - 9/17/2019 [/b] + x...
Dave - 5 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search