Script sometimes doesn't output last trial


Author
Message
Psych.Lab
Psych.Lab
Associate Member (146 reputation)Associate Member (146 reputation)Associate Member (146 reputation)Associate Member (146 reputation)Associate Member (146 reputation)Associate Member (146 reputation)Associate Member (146 reputation)Associate Member (146 reputation)Associate Member (146 reputation)
Group: Forum Members
Posts: 1, Visits: 6
Hi Everyone,

I'm trying to add a simple open ended question at the end of the already existing Flanker Task script I downloaded online. I added this as a block (called block.donate_intro) with 1 trial composed of an "openended" question. However, sometimes when I run the script the instruction page appears, but the open ended question doesn't. It doesn't even appear on the output. Other times, however, it runs perfectly.

Am I adding this in the incorrect way? Why is it not working every time?

Attached is my entire script. I hope someone can help! 

Thanks!

Attachments
Tags
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: 12K, Visits: 98K
The block you added runs one <trial> element, which displays the "instructions":

<block donate_intro>
/trials = [1 = instruct1]
</block>

That <trial> then either does or does not invoke the <openended> element via /branch depending on the response:

<trial instruct1>
/stimulusframes = [1 = instruction1]
/validresponse = (28, 50, 46)
/branch = [if (trial.instruct1.response == 50) openended.donate]
[...]
</trial>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search