Problems with a branch and errormessage


Author
Message
agathachronos
agathachronos
Associate Member (197 reputation)Associate Member (197 reputation)Associate Member (197 reputation)Associate Member (197 reputation)Associate Member (197 reputation)Associate Member (197 reputation)Associate Member (197 reputation)Associate Member (197 reputation)Associate Member (197 reputation)
Group: Forum Members
Posts: 2, Visits: 20
Hey guys, 

I'm currently working on a concealed information test on inquisit 5 and at one point my participants need to go through a trial
pressing yes or no for different pictures. They get 2 different kinds of feedback for this:
"wrong" = when they make a mistake pressing yes/no for a photo
"too slow" = when they exceed 1500 ms in responding

The problem is that whenever they exceed the 1500 ms timeout they first see the "wrong" feedback followed by the "too slow" feedback
but this doesn't happen when they just get a photo wrong, then they don't receive a "too slow" message.

Here is the code, I'd really appreciate any help in resolving this:

<trial probe_crime_rl_A_Speeded>
/ trialcode = "probe_crime_rl_A_Speeded"
/ inputdevice = keyboard
/ correctresponse = ("z")
/ stimulustimes = [0 = probe_crime_A; 1500 = eraserbig]
/ timeout = 1500
/ responsetime = 0
/ responseinterrupt = trial
/ posttrialpause= noreplace (250, 500, 750)
/ branch = (trial.probe_crime_rl_A_Speeded.latency, GE, 1500, tooslowtrial)
/ errormessage = true(wrong, 200)
</trial>



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: 13K, Visits: 105K
agathachronos - Thursday, November 2, 2017
Hey guys, 

I'm currently working on a concealed information test on inquisit 5 and at one point my participants need to go through a trial
pressing yes or no for different pictures. They get 2 different kinds of feedback for this:
"wrong" = when they make a mistake pressing yes/no for a photo
"too slow" = when they exceed 1500 ms in responding

The problem is that whenever they exceed the 1500 ms timeout they first see the "wrong" feedback followed by the "too slow" feedback
but this doesn't happen when they just get a photo wrong, then they don't receive a "too slow" message.

Here is the code, I'd really appreciate any help in resolving this:

<trial probe_crime_rl_A_Speeded>
/ trialcode = "probe_crime_rl_A_Speeded"
/ inputdevice = keyboard
/ correctresponse = ("z")
/ stimulustimes = [0 = probe_crime_A; 1500 = eraserbig]
/ timeout = 1500
/ responsetime = 0
/ responseinterrupt = trial
/ posttrialpause= noreplace (250, 500, 750)
/ branch = (trial.probe_crime_rl_A_Speeded.latency, GE, 1500, tooslowtrial)
/ errormessage = true(wrong, 200)
</trial>



The correct repsonse in that trial is "z". Pressing any other key AS WELL AS not responding at all (i.e. the trial timing out) is a wrong response, and hence the error message will be displayed. In stead of using /errormessage you should set up separate feedback trials (one for "too slow", one for a regular error, i.e. pressing the wrong key) and /branch to those accordingly.

agathachronos
agathachronos
Associate Member (197 reputation)Associate Member (197 reputation)Associate Member (197 reputation)Associate Member (197 reputation)Associate Member (197 reputation)Associate Member (197 reputation)Associate Member (197 reputation)Associate Member (197 reputation)Associate Member (197 reputation)
Group: Forum Members
Posts: 2, Visits: 20
Dave - Thursday, November 2, 2017

The correct repsonse in that trial is "z". Pressing any other key AS WELL AS not responding at all (i.e. the trial timing out) is a wrong response, and hence the error message will be displayed. In stead of using /errormessage you should set up separate feedback trials (one for "too slow", one for a regular error, i.e. pressing the wrong key) and /branch to those accordingly.

I've tried that, here is the script for the branches as well as the trial scripts for wrong and too slow
Yet I still get the errors seen in the screenshot

But I still get an error
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: 13K, Visits: 105K
agathachronos - Thursday, November 2, 2017
Dave - Thursday, November 2, 2017

The correct repsonse in that trial is "z". Pressing any other key AS WELL AS not responding at all (i.e. the trial timing out) is a wrong response, and hence the error message will be displayed. In stead of using /errormessage you should set up separate feedback trials (one for "too slow", one for a regular error, i.e. pressing the wrong key) and /branch to those accordingly.

I've tried that, here is the script for the branches as well as the trial scripts for wrong and too slow
Yet I still get the errors seen in the screenshot

But I still get an error

That is not valid /branch syntax.

You ought to do something like

<trial probe_crime_rl_A_Speeded>
/ trialcode = "probe_crime_rl_A_Speeded"
/ inputdevice = keyboard
/ correctresponse = ("z")
/ stimulustimes = [0 = probe_crime_A; 1500 = eraserbig]
/ timeout = 1500
/ responsetime = 0
/ responseinterrupt = trial
/ posttrialpause= noreplace (250, 500, 750)
/ branch = [if (trial.probe_crime_rl_A_Speeded.response == 0) trial.tooslowtrial]
/ branch = [if (trial.probe_crime_rl_A_Speeded.error) trial.wrongtrial]

</trial>
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search