Millisecond Forums

textbox and picture

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

By anisa_khalfan - 3/8/2021

Hi,
I am having trouble presenting a picture and a text box at the same time. I want them to see a food item, and rate it. Then see the same food item and then write what comes to mind. 

This is what I have so far.

<item foodpic>
/1 = "RedPepper_3_6pc.jpg"
/2 = "Orange_2_0.5orange.jpg"
/3 = "Prunes_3_6pc.jpg"
/4 = "IceCreamChocolate_3_2scoops.jpg"
/5 = "EnglishCucumber_3_5pc.jpg"
</item>

<item rating>
/1 = "preference_rating.png"
</item>

<picture foodpic_rating>
/ items = foodpic
/ size = (70%, 50%)
/ position = (50%,30%)
</picture>

<picture rating>
/ items = rating
/ size = (40%,40%)
/ position = (50%,80%)
</picture>

<openended thoughts>
/ position = (50, 90)
/ linelength = 40
/ numlines = 3
</openended>

<trial food_rating>
/ validresponse = ("1","2","3","4","5","6")
/ stimulusframes = [1 = foodpic_rating, rating; 2= foodpic_rating, thoughts]
/ posttrialpause = 250
</trial>

This returns an error that says thoughts does not exist. I appreciate the help! I have checked all the tutorials with no luck.

Anisa Khalfan
By Dave - 3/8/2021

anisa_khalfan - 3/8/2021
Hi,
I am having trouble presenting a picture and a text box at the same time. I want them to see a food item, and rate it. Then see the same food item and then write what comes to mind. 

This is what I have so far.

<item foodpic>
/1 = "RedPepper_3_6pc.jpg"
/2 = "Orange_2_0.5orange.jpg"
/3 = "Prunes_3_6pc.jpg"
/4 = "IceCreamChocolate_3_2scoops.jpg"
/5 = "EnglishCucumber_3_5pc.jpg"
</item>

<item rating>
/1 = "preference_rating.png"
</item>

<picture foodpic_rating>
/ items = foodpic
/ size = (70%, 50%)
/ position = (50%,30%)
</picture>

<picture rating>
/ items = rating
/ size = (40%,40%)
/ position = (50%,80%)
</picture>

<openended thoughts>
/ position = (50, 90)
/ linelength = 40
/ numlines = 3
</openended>

<trial food_rating>
/ validresponse = ("1","2","3","4","5","6")
/ stimulusframes = [1 = foodpic_rating, rating; 2= foodpic_rating, thoughts]
/ posttrialpause = 250
</trial>

This returns an error that says thoughts does not exist. I appreciate the help! I have checked all the tutorials with no luck.

Anisa Khalfan

An <openended> element is a special kind of <trial>, it is not a stimulus. You cannot display an <openended> element via /stimulusframes.

<item foodpic>
/1 = "RedPepper_3_6pc.jpg"
/2 = "Orange_2_0.5orange.jpg"
/3 = "Prunes_3_6pc.jpg"
/4 = "IceCreamChocolate_3_2scoops.jpg"
/5 = "EnglishCucumber_3_5pc.jpg"
</item>

<values>
/ itemnumber = 1
</values>

// 5 items in this example
<list itemnumbers>
/ poolsize = 5
</list>

<item rating>
/1 = "preference_rating.png"
</item>

<picture foodpic_rating>
/ items = foodpic
/ size = (70%, 50%)
/ position = (50%,30%)
/ select = values.itemnumber
</picture>

<picture rating>
/ items = rating
/ size = (40%,40%)
/ position = (50%,80%)
</picture>

<openended thoughts>
/ stimulusframes = [
    1=foodpic_rating, rating
]
/ position = (50, 90)
/ linelength = 40
/ numlines = 3
</openended>

<trial food_rating>
/ ontrialbegin = [
    values.itemnumber = list.itemnumbers.nextindex;
]
/ validresponse = ("1","2","3","4","5","6")
/ stimulusframes = [1 = foodpic_rating, rating]
/ posttrialpause = 250
/ branch = [
    openended.thoughts
]
</trial>

<block example>
/ trials = [1-5 = food_rating]
</block>