dot probe


Author
Message
Jens Bölte
Jens Bölte
Guru (9.6K reputation)Guru (9.6K reputation)Guru (9.6K reputation)Guru (9.6K reputation)Guru (9.6K reputation)Guru (9.6K reputation)Guru (9.6K reputation)Guru (9.6K reputation)Guru (9.6K reputation)
Group: Forum Members
Posts: 78, Visits: 60
Hello,

ok, when I use setitem the probe is displayed with "".

<trial t.neg.word.left>
/ontrialbegin = [if (list.posi.probe.neg.left.nextvalue == 1)      {text.probe.left.hposition = values.links; values.pos = values.links; text.probe.left.setitem("F", 1)}
                  else if (list.posi.probe.neg.left.nextvalue == 2) {text.probe.left.hposition = values.rechts; values.pos = values.rechts; text.probe.left.setitem("F", 1)}
                  else if (list.posi.probe.neg.left.nextvalue == 3) {text.probe.left.hposition = values.links; values.pos = values.links; text.probe.left.setitem("J", 1)}
                  else if (list.posi.probe.neg.left.nextvalue == 4) {text.probe.left.hposition = values.rechts; values.pos = values.rechts; text.probe.left.setitem("J", 1)}]
/stimulusframes = [ 1 = fixation; 30 = maske; 31 = neg.word.left.tar, neg.word.left.dis; 42 = maske; 43 = probe.left ]
/validresponse = ("F", "J")
/iscorrectresponse = [if (text.probe.left.currentitem == "F") {values.korrekt = 33} else {values.korrekt = 36}]
/timeout = 3000
</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: 108K
In your <trial> elements, you are constantly *inserting* items into the probe <text> elements:

<trial t.neg.word.left>
/ ontrialbegin = [if (list.posi.probe.neg.left.nextvalue == 1)      {text.probe.left.hposition = values.links; values.pos = values.links; text.probe.left.insertitem("F", 1)}
                  else if (list.posi.probe.neg.left.nextvalue == 2) {text.probe.left.hposition = values.rechts; values.pos = values.rechts; text.probe.left.insertitem("F", 1)}
                  else if (list.posi.probe.neg.left.nextvalue == 3) {text.probe.left.hposition = values.links; values.pos = values.links; text.probe.left.insertitem("J", 1)}
                  else if (list.posi.probe.neg.left.nextvalue == 4) {text.probe.left.hposition = values.rechts; values.pos = values.rechts; text.probe.left.insertitem("J", 1)}]

Inserting an item does *not* remove any items that are already there. Since the <text> elements sample randomly without replacement, the already existing items ("A", "B") may eventually be sampled.

You don't want to use insertitem(). What you want to use is the setitem() function.

Jens Bölte
Jens Bölte
Guru (9.6K reputation)Guru (9.6K reputation)Guru (9.6K reputation)Guru (9.6K reputation)Guru (9.6K reputation)Guru (9.6K reputation)Guru (9.6K reputation)Guru (9.6K reputation)Guru (9.6K reputation)
Group: Forum Members
Posts: 78, Visits: 60
Hello,

a dot-probe experiment that I am programming does not run the way I intend it to run and I cannot find the error. I tried to use four list-elements to present the probe "F" and "J" equally often on the left side or the right side of the screen and equally often preceded by an emotion word or a non-emotion word. However, I do not get the wanted distribution. Given that sometimes "A" or "B" is presented as a probe indicates that the if-construction is sometimes not evaluated. But why?

Best regards Jens

Attachments
EmoWordDot.iqx (639 views, 10.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search