Branch to specific blocks creates error "wrong element type"


Author
Message
L&S
L&S
L&S
posted 9 Years Ago HOT
Respected Member (387 reputation)Respected Member (387 reputation)Respected Member (387 reputation)Respected Member (387 reputation)Respected Member (387 reputation)Respected Member (387 reputation)Respected Member (387 reputation)Respected Member (387 reputation)Respected Member (387 reputation)
Group: Forum Members
Posts: 4, Visits: 19
Hi,

we have encountered a problem in our script that we cannot solve at this moment and would be very grateful for help. We googled extensively and tried to use the search in this forum, but we couldn't find anything that fit the bill.

In a first step we present geometrical shapes and emotional pictures to our participants so an association is learned and then, in a second step, we test for this association in a decision task. Both steps repeat three times for three different shapes and types of emotional picture. All in all there are twelve conditions to account for different combinations of shape and picture type. Also, after each decision task participants have to fill out a questionaire (also implemented in inquisit) to create a break.

We use the branch command to jump from the learning blocks to the decision blocks to the questionaire and back to the next learning block. Everything goes fine till after the first questionaire where the experiment suddenly closes. This happens every time we use the test monkey even though there is no faulty code pointed out when we simply validate the sript syntax. However, the test monkey gives out this error message:

The element 'Lernen1b' in branch expression 'Lernen1b' is the wrong element type.


Below are some excerpts of our code that should contain the error. The first one is the last page of a questionaire that should branch back to the second learning block. The noreplace is part of an additional randomization that's part of our design; we tried taking it out but this didn't solve the problem, the exact same error occurred.

<surveypage DAS8>
/ subcaption = "Ihre Antworten auf folgende Meinungen sollen ausdrücken, was sie meistens denken."
/ questions = [1=DAS36; 2=DAS37; 3=DAS38; 4=DAS39; 5=DAS40]
/ branch = [if (values.bedingungsvariable == 1) noreplace (block.lernen1b, block.lernen2b)]
/ branch = [if (values.bedingungsvariable == 2) noreplace (block.lernen1b, block.lernen2b)]
/ branch = [if (values.bedingungsvariable == 3) noreplace (block.lernen3b, block.lernen4b)]
/ branch = [if (values.bedingungsvariable == 4) noreplace (block.lernen3b, block.lernen4b)]
/ branch = [if (values.bedingungsvariable == 5) noreplace (block.lernen5b, block.lernen6b)]
/ branch = [if (values.bedingungsvariable == 6) noreplace (block.lernen5b, block.lernen6b)]
/ branch = [if (values.bedingungsvariable == 7) noreplace (block.lernen7b, block.lernen8b)]
/ branch = [if (values.bedingungsvariable == 8) noreplace (block.lernen7b, block.lernen8b)]
/ branch = [if (values.bedingungsvariable == 9) noreplace (block.lernen9b, block.lernen10b)]
/ branch = [if (values.bedingungsvariable == 10) noreplace (block.lernen9b, block.lernen10b)]
/ branch = [if (values.bedingungsvariable == 11) noreplace (block.lernen11b, block.lernen12b)]
/ branch = [if (values.bedingungsvariable == 12) noreplace (block.lernen11b, block.lernen12b)]
</surveypage>


The next excerpt is the second learning block that according to the error message is the "wrong element type":

<block Lernen1b>
/ trials = [1 = instruction1; 2-6, 9-14, 17-22
= noreplace (Quadrat1positiv, Quadrat9neutral);
7, 15, 23 = Zwischenabfrage_Quadrat1pos; 8, 16, 24 = Zwischenabfrage_Quadrat9pos]
/ branch = [block.abfrage1und2b]
</block>


We already tried several (sometimes pretty stupid) things to get rid of this problem but without avail. Any suggestions are highly appreciated!

Best,
Lukas & Sven

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search