Millisecond Forums

trial.elapsedtime not always 100% accurate?

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

By DCole9 - 3/16/2015

Hey Inquisitmen,
I noticed some behavior in my logfile where a trial was not branching properly to an Incorrect Feedback trial upon timeout.  Is there a more elegant way to do this? and does the trial.elapsedtime element not always work 100% accurately (if I have many branch/ontrialend/etc. elements in the trial)?

Here is my sample code that doesn't always return feedback
<trial patchtrial>
/timeout 5000
/branch = [if (trial.patchtrial.elapsedtime > 4999) trial.wrongfeedback]
... (lots of other branch conditions a long ontrialend)
</trial>

By Dave - 3/16/2015

/ branch = [if (trial.patchtrial.response == 0) ...]

If a trial times out (cf. the /timeout attribute), it must mean no (valid) response has been submitted.
By DCole9 - 3/17/2015

Nice fix Dave.  I was trying to find a noresponse attribute--- this makes sense now that you mention it ;)

Thanks!