Millisecond Forums

Stimuli disappear from surveypage

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

By carmen0101 - 4/8/2020

Does anyone know why some pictures under my surveypage coding disappears when I run the experiment?

I ran it several times before and it worked with all the pictures coming up on the screen at the same time as the slider. However, suddenly now when I run the coding below nothing appears under my slider!!!

<picture Neutraldrinks>
/items = Neutraldrinks
/select =noreplace
/size = (80%, 80%)
</picture>

<item Neutraldrinks>
/1="AAPS Pictures\2P_1.jpg"
/2="AAPS Pictures\2P_2.jpg"
/3="AAPS Pictures\2P_3.jpg"
/4="AAPS Pictures\2P_4.jpg"
/5="AAPS Pictures\2P_5.jpg"
/6="AAPS Pictures\2P_6.jpg"
/7="AAPS Pictures\2P_7.jpg"
/8="AAPS Pictures\2P_8.jpg"
/9="AAPS Pictures\2P_9.jpg"
/10="AAPS Pictures\2P_10.jpg"
/11="AAPS Pictures\2P_11.jpg"
/12="AAPS Pictures\2P_12.jpg"
/13="AAPS Pictures\2P_13.jpg"
/14="AAPS Pictures\2P_14.jpg"
/15="AAPS Pictures\2P_15.jpg"
/16="AAPS Pictures\2P_16.jpg"
/17="AAPS Pictures\2P_17.jpg"
/18="AAPS Pictures\2P_18.jpg"
</item>

<picture WF_003>
/items = WF_003
/select =noreplace
/size = (50%, 50%)
</picture>

<item WF_003>
/1="morphs\WF_003_01.bmp"
/2="morphs\WF_003_02.bmp"
/3="morphs\WF_003_03.bmp"
/4="morphs\WF_003_04.bmp"
/5="morphs\WF_003_05.bmp"
/6="morphs\WF_003_06.bmp"
/7="morphs\WF_003_07.bmp"
/8="morphs\WF_003_08.bmp"
/9="morphs\WF_003_09.bmp"
/10="morphs\WF_003_10.bmp"
/11="morphs\WF_003_11.bmp"
/12="morphs\WF_003_12.bmp"
/13="morphs\WF_003_13.bmp"
/14="morphs\WF_003_14.bmp"
/15="morphs\WF_003_15.bmp"
/16="morphs\WF_003_16.bmp"
/17="morphs\WF_003_17.bmp"
/18="morphs\WF_003_18.bmp"
/19="morphs\WF_003_19.bmp"
/20="morphs\WF_003_20.bmp"
/21="morphs\WF_003_21.bmp"
/22="morphs\WF_003_22.bmp"
/23="morphs\WF_003_23.bmp"
/24="morphs\WF_003_24.bmp"
/25="morphs\WF_003_25.bmp"
/26="morphs\WF_003_26.bmp"
/27="morphs\WF_003_27.bmp"
/28="morphs\WF_003_28.bmp"
/29="morphs\WF_003_29.bmp"
/30="morphs\WF_003_30.bmp"
/31="morphs\WF_003_31.bmp"
/32="morphs\WF_003_32.bmp"
/33="morphs\WF_003_33.bmp"
/34="morphs\WF_003_34.bmp"
/35="morphs\WF_003_35.bmp"
/36="morphs\WF_003_36.bmp"
/37="morphs\WF_003_37.bmp"
/38="morphs\WF_003_38.bmp"
/39="morphs\WF_003_39.bmp"
/40="morphs\WF_003_40.bmp"
/41="morphs\WF_003_41.bmp"
/42="morphs\WF_003_42.bmp"
/43="morphs\WF_003_43.bmp"
/44="morphs\WF_003_44.bmp"
/45="morphs\WF_003_45.bmp"
/46="morphs\WF_003_46.bmp"
/47="morphs\WF_003_47.bmp"
/48="morphs\WF_003_48.bmp"
/49="morphs\WF_003_49.bmp"
/50="morphs\WF_003_50.bmp"
</item>

<shape blank>
/ color = white
/ shape = rectangle
/ size = (100%, 100%)
/ erase = false
</shape>

<trial singleWF_003>
/stimulustimes = [0=noreplacenorepeat(picture.Neutraldrinks); 1700=blank; 1800=noreplacenorepeat(picture.WF_003)]
/timeout = 3800
/recorddata = true
</trial>

<block singleWF_003>
/trials = [1,3= singleWF_003; 2,4=surveypage.Angerscale_WF_003]
</block>

<slider Angerscale>
/labels = ("Neutral (0)", "Strong (50)")
/range = (0, 50)
/defaultresponse = 0
/required = true
/slidersize = (80%, 80%)
/fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
/ responsefontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = black
</slider>

<surveypage Angerscale_WF_003>
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 10)
/ txcolor = black
/ questions = [1=slider.Angerscale]
/ stimulusframes = [1= picture.WF_003_01, picture.WF_003_10, picture.WF_003_20, picture.WF_003_30, picture.WF_003_40, picture.WF_003_50, clearscreen]
/itemspacing = 0
/ showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/ navigationbuttonfontstyle = ("Arial", 2.5%, true, false, false, false, 5, 1)
/recorddata = true
</surveypage>

<picture WF_003_01>
/items = ("morphs\WF_003_01.bmp")
/ position = (15%, 55%)
/ size = (20%, 20%)
/ erase = false
</picture>

<picture WF_003_10>
/items = ("morphs\WF_003_10.bmp")
/ position = (30%, 55%)
/ size = (20%, 20%)
/ erase = false
</picture>

<picture WF_003_20>
/items = ("morphs\WF_003_20.bmp")
/ position = (45%, 55%)
/ size = (20%, 20%)
/ erase = false
</picture>

<picture WF_003_30>
/items = ("morphs\WF_003_30.bmp")
/ position = (60%, 55%)
/ size = (20%, 20%)
/ erase = false
</picture>

<picture WF_003_40>
/items = ("morphs\WF_003_40.bmp")
/ position = (75%, 55%)
/ size = (20%, 20%)
/ erase = false
</picture>

<picture WF_003_50>
/items = ("morphs\WF_003_50.bmp")
/ position = (90%, 55%)
/ size = (20%, 20%)
/ erase = false
</picture>
By Dave - 4/8/2020

carmen0101 - 4/8/2020
Does anyone know why some pictures under my surveypage coding disappears when I run the experiment?

I ran it several times before and it worked with all the pictures coming up on the screen at the same time as the slider. However, suddenly now when I run the coding below nothing appears under my slider!!!

<picture Neutraldrinks>
/items = Neutraldrinks
/select =noreplace
/size = (80%, 80%)
</picture>

<item Neutraldrinks>
/1="AAPS Pictures\2P_1.jpg"
/2="AAPS Pictures\2P_2.jpg"
/3="AAPS Pictures\2P_3.jpg"
/4="AAPS Pictures\2P_4.jpg"
/5="AAPS Pictures\2P_5.jpg"
/6="AAPS Pictures\2P_6.jpg"
/7="AAPS Pictures\2P_7.jpg"
/8="AAPS Pictures\2P_8.jpg"
/9="AAPS Pictures\2P_9.jpg"
/10="AAPS Pictures\2P_10.jpg"
/11="AAPS Pictures\2P_11.jpg"
/12="AAPS Pictures\2P_12.jpg"
/13="AAPS Pictures\2P_13.jpg"
/14="AAPS Pictures\2P_14.jpg"
/15="AAPS Pictures\2P_15.jpg"
/16="AAPS Pictures\2P_16.jpg"
/17="AAPS Pictures\2P_17.jpg"
/18="AAPS Pictures\2P_18.jpg"
</item>

<picture WF_003>
/items = WF_003
/select =noreplace
/size = (50%, 50%)
</picture>

<item WF_003>
/1="morphs\WF_003_01.bmp"
/2="morphs\WF_003_02.bmp"
/3="morphs\WF_003_03.bmp"
/4="morphs\WF_003_04.bmp"
/5="morphs\WF_003_05.bmp"
/6="morphs\WF_003_06.bmp"
/7="morphs\WF_003_07.bmp"
/8="morphs\WF_003_08.bmp"
/9="morphs\WF_003_09.bmp"
/10="morphs\WF_003_10.bmp"
/11="morphs\WF_003_11.bmp"
/12="morphs\WF_003_12.bmp"
/13="morphs\WF_003_13.bmp"
/14="morphs\WF_003_14.bmp"
/15="morphs\WF_003_15.bmp"
/16="morphs\WF_003_16.bmp"
/17="morphs\WF_003_17.bmp"
/18="morphs\WF_003_18.bmp"
/19="morphs\WF_003_19.bmp"
/20="morphs\WF_003_20.bmp"
/21="morphs\WF_003_21.bmp"
/22="morphs\WF_003_22.bmp"
/23="morphs\WF_003_23.bmp"
/24="morphs\WF_003_24.bmp"
/25="morphs\WF_003_25.bmp"
/26="morphs\WF_003_26.bmp"
/27="morphs\WF_003_27.bmp"
/28="morphs\WF_003_28.bmp"
/29="morphs\WF_003_29.bmp"
/30="morphs\WF_003_30.bmp"
/31="morphs\WF_003_31.bmp"
/32="morphs\WF_003_32.bmp"
/33="morphs\WF_003_33.bmp"
/34="morphs\WF_003_34.bmp"
/35="morphs\WF_003_35.bmp"
/36="morphs\WF_003_36.bmp"
/37="morphs\WF_003_37.bmp"
/38="morphs\WF_003_38.bmp"
/39="morphs\WF_003_39.bmp"
/40="morphs\WF_003_40.bmp"
/41="morphs\WF_003_41.bmp"
/42="morphs\WF_003_42.bmp"
/43="morphs\WF_003_43.bmp"
/44="morphs\WF_003_44.bmp"
/45="morphs\WF_003_45.bmp"
/46="morphs\WF_003_46.bmp"
/47="morphs\WF_003_47.bmp"
/48="morphs\WF_003_48.bmp"
/49="morphs\WF_003_49.bmp"
/50="morphs\WF_003_50.bmp"
</item>

<shape blank>
/ color = white
/ shape = rectangle
/ size = (100%, 100%)
/ erase = false
</shape>

<trial singleWF_003>
/stimulustimes = [0=noreplacenorepeat(picture.Neutraldrinks); 1700=blank; 1800=noreplacenorepeat(picture.WF_003)]
/timeout = 3800
/recorddata = true
</trial>

<block singleWF_003>
/trials = [1,3= singleWF_003; 2,4=surveypage.Angerscale_WF_003]
</block>

<slider Angerscale>
/labels = ("Neutral (0)", "Strong (50)")
/range = (0, 50)
/defaultresponse = 0
/required = true
/slidersize = (80%, 80%)
/fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
/ responsefontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = black
</slider>

<surveypage Angerscale_WF_003>
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 10)
/ txcolor = black
/ questions = [1=slider.Angerscale]
/ stimulusframes = [1= picture.WF_003_01, picture.WF_003_10, picture.WF_003_20, picture.WF_003_30, picture.WF_003_40, picture.WF_003_50, clearscreen]
/itemspacing = 0
/ showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/ navigationbuttonfontstyle = ("Arial", 2.5%, true, false, false, false, 5, 1)
/recorddata = true
</surveypage>

<picture WF_003_01>
/items = ("morphs\WF_003_01.bmp")
/ position = (15%, 55%)
/ size = (20%, 20%)
/ erase = false
</picture>

<picture WF_003_10>
/items = ("morphs\WF_003_10.bmp")
/ position = (30%, 55%)
/ size = (20%, 20%)
/ erase = false
</picture>

<picture WF_003_20>
/items = ("morphs\WF_003_20.bmp")
/ position = (45%, 55%)
/ size = (20%, 20%)
/ erase = false
</picture>

<picture WF_003_30>
/items = ("morphs\WF_003_30.bmp")
/ position = (60%, 55%)
/ size = (20%, 20%)
/ erase = false
</picture>

<picture WF_003_40>
/items = ("morphs\WF_003_40.bmp")
/ position = (75%, 55%)
/ size = (20%, 20%)
/ erase = false
</picture>

<picture WF_003_50>
/items = ("morphs\WF_003_50.bmp")
/ position = (90%, 55%)
/ size = (20%, 20%)
/ erase = false
</picture>

You need to use <image> elements displayed via the page's /questions attribute, not <picture> elements displayed via /stimulusframes.
By carmen0101 - 4/8/2020

I have made the following changes to the code. My issue currently is that an error message comes up reading "drop target 1 is unassigned". Also, I am unable to use the element clearscreen under /question. 

<surveypage Angerscale_WF_003>
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 10)
/ txcolor = black
/ questions = [1=slider.Angerscale, WF_003_01, WF_003_10, WF_003_20, WF_003_30, WF_003_40, WF_003_50, clearscreen]
/itemspacing = 0
/ showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/ navigationbuttonfontstyle = ("Arial", 2.5%, true, false, false, false, 5, 1)
/recorddata = true
</surveypage>

<image WF_003_01>
/items = ("morphs\WF_003_01.bmp")
/ position = (15%, 55%)
/ size = (20%, 20%)
/ erase = false
</image>

<image WF_003_10>
/items = ("morphs\WF_003_10.bmp")
/ position = (30%, 55%)
/ size = (20%, 20%)
/ erase = false
</image>

<image WF_003_20>
/items = ("morphs\WF_003_20.bmp")
/ position = (45%, 55%)
/ size = (20%, 20%)
/ erase = false
</image>

<image WF_003_30>
/items = ("morphs\WF_003_30.bmp")
/ position = (60%, 55%)
/ size = (20%, 20%)
/ erase = false
</image>

<image WF_003_40>
/items = ("morphs\WF_003_40.bmp")
/ position = (75%, 55%)
/ size = (20%, 20%)
/ erase = false
</image>

<image WF_003_50>
/items = ("morphs\WF_003_50.bmp")
/ position = (90%, 55%)
/ size = (20%, 20%)
/ erase = false
</image>
By carmen0101 - 4/8/2020

I have managed to figure out the following changes and it runs. However, my images do not appear on the screen with the slider. 

<surveypage Angerscale_WF_003>
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 10)
/ txcolor = black
/ questions = [1=slider.Angerscale; 2=WF_003_01; 3=WF_003_10; 4=WF_003_20; 5=WF_003_30; 6=WF_003_40; 7=WF_003_50]
/itemspacing = 0
/ showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/ navigationbuttonfontstyle = ("Arial", 2.5%, true, false, false, false, 5, 1)
/recorddata = true
</surveypage>
By Dave - 4/8/2020

carmen0101 - 4/9/2020
I have managed to figure out the following changes and it runs. However, my images do not appear on the screen with the slider. 

<surveypage Angerscale_WF_003>
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 10)
/ txcolor = black
/ questions = [1=slider.Angerscale; 2=WF_003_01; 3=WF_003_10; 4=WF_003_20; 5=WF_003_30; 6=WF_003_40; 7=WF_003_50]
/itemspacing = 0
/ showbackbutton = false
/showpagenumbers = false
/showquestionnumbers = false
/ navigationbuttonfontstyle = ("Arial", 2.5%, true, false, false, false, 5, 1)
/recorddata = true
</surveypage>

All your <image> elements need to have a proper /imagesize defined
By carmen0101 - 4/8/2020

That worked! Thank you Dave!