Millisecond Forums

Timeout as correct response

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

By iilay1998 - 6/6/2018

Hi Inquisit,

I am having a problem where when a trial times out it returns a correct response when I'd like to receive a false one.

Thanks for the help,
Ilay
By Dave - 6/6/2018

iilay1998 - Wednesday, June 6, 2018
Hi Inquisit,

I am having a problem where when a trial times out it returns a correct response when I'd like to receive a false one.

Thanks for the help,
Ilay

Please post the code for the <trial> element in question. You've probably only defined /validresponse in the <trial>, you should define /correctresponse in addition, and /correctresponse should not contain no response among the correct responses. E.g.

<trial example>
...
/ validresponse = (18, 23)
/ correctresponse = (18)
/ timeout = 5000
</trial>

should return a non-response / timeout as incorrect.
By iilay1998 - 6/6/2018


Thanks for the quick reply!
I made the mistake thinking my code was incorrect due to a mistake made in the following page: 
https://www.millisecond.com/support/docs/v5/html/language/properties/error.htm
It claims that 1's are incorrect and 0's are correct.

By Dave - 6/6/2018

iilay1998 - Wednesday, June 6, 2018

Thanks for the quick reply!
I made the mistake thinking my code was incorrect due to a mistake made in the following page: 
https://www.millisecond.com/support/docs/v5/html/language/properties/error.htm
It claims that 1's are incorrect and 0's are correct.


That is true for the _error_ property: 1 indicates an error occurred, 0 indicates no error occurred.

It is the reverse for the _correct_ property. Here, 1 indicates the response was correct (no error), 0 indicates the response was incorrect (an error occurred).

https://www.millisecond.com/support/docs/v5/html/language/properties/correct.htm

Consider this example:

<block myblock>
/ trials = [1-10 = mytrial]
</block>

<trial mytrial>
/ stimulusframes = [1=mytext]
/ validresponse = (57, 0)
/ correctresponse = (57)
/ timeout = 3000
/ correctmessage = true(correcttxt, 500)
/ errormessage = true(errortxt, 500)
</trial>

<text mytext>
/ items = ("Press the SPACEBAR or let the trial time out.")
</text>

<text correcttxt>
/ items = ("CORRECT")
/ txcolor = green
/ position = (50%, 80%)
</text>

<text errortxt>
/ items = ("ERROR")
/ txcolor = red
/ position = (50%, 80%)
</text>

<data>
/ columns = (date time subject group trialnum trialcode latency response correct trial.mytrial.correct trial.mytrial.error)
/ separatefiles = true
</data>