/errormessage issues


Author
Message
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: 108K
Grrr, looks like there's an issue when specifying the /response attribute at the <trial>-level. Workaround is to do it at the <block>-level instead:

<block myblock>
/ trials = [1-4=mytrial]
/ response = correct
</block>

<trial mytrial>
/ stimulusframes = [1=mytext]
/ validresponse = (anyresponse)
/ correctresponse = ("Y", "N")
/ errormessage = true(x,500)
</trial>

<text mytext>
/ items = ("Stimulus")
</text>

<text x>
/ items = ("X")
/ color = (red)
/ position = (50%, 60%)
</text>

charlottebooth
charlottebooth
Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)
Group: Forum Members
Posts: 45, Visits: 249
That's great! Only problem now is that my error message doesn't appear when they use a valid but not correct response! Any ideas?
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: 108K
/ validresponse determines *which responses are allowed at all* in a given trial. If you wanted to allow participants to press any key, you would have to define

/ validresponse = (anyresponse)
/ correctresponse = ("Y", "N")
/ response = correct

Edited 11 Years Ago by Dave
charlottebooth
charlottebooth
Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)
Group: Forum Members
Posts: 45, Visits: 249
Hi everyone,

I am creating a task where words are shown and Pps have to indicate whether the word describes them by pressing 'Y' or 'N'. I'm just struggling with the error message. I want a text element to appear if they click any key that isn't a 'Y' or a 'N' to remind them of the task instructions basically.

Here is this script at the moment:
<trial positive>
/stimulustimes = [150=positive; 2500=describes]
/inputdevice = keyboard
/validresponse = ("Y", "N")
/errormessage = true(errortext, 1000)
/pretrialpause = 500
</trial>

However this script causes the errormessage to appear only when a valid response was made, which is exactly the opposite of what I want it to do.

Any hep would be much appreciated!

Thanks,

Charlottte
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search