Error Messages in my AMP Script - Masterarbeit


Author
Message
Kerstin
Kerstin
Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)
Group: Forum Members
Posts: 23, Visits: 29
Hello,

i am using the AMP for creating an experiment for my masterarbeit.
Unfortunately I have a few problems with my script, so that every time I try to run the experiment I always get error messages.
I want to use 4 text items in my experiment and no pictures. So I listed and named the 4 items and copied every other detail from an example but also some of these elements don't work in my skript.
To make long things short I will list the error messages and hope you can help me.

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>
-> Filenot found. Please verify that the file path'C:/Users/Kerstin/AppData/Local/Temp/AMP-2 (1)/Masterarbeit/neutral.jpg' iscorrect.

*Stimuli*
<text target>
/ items = text
/ select = noreplace
/ size = (20%, 20%)
</text>
 ->could not locate item text

<picture mask>
/ items = ("mask.jpg")
/ size = (23%, 23%)
</picture>

1)     ->File not found. Please verify that the file path'C:/Users/Kerstin/AppData/Local/Temp/AMP-2 (1)/Masterarbeit/neutral.jpg' iscorrect.


*tirals*
<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=pleasant; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primea.currentitemnumber; values.targetstim = expressions.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

Expression'expressions.target.currentitemnumber' is invalid. Expression contains anunknown element or property name.

To get an impression of how my skript looks like I copied it. It looks like this:




<item attributeAlabel>
/1 = "Unleasant"
</item>

<item attributeBlabel>
/1 = "Pleasant"
</item>

<item attributeClabel>
/1 = "Unpleasant"
</item>

<item attributeDlabel>
/1 = "Pleasant"
</item>

<item primeAlabel>
/1 = "Pflegeroboter"
</item>

<item primeBlabel>
/1 = "sensorgesteuerte Heizungen"
</item>

<item primeClabel>
/1 = "Smart-Häuser"
</item>

<item primeDlabel>
/1 = "Sterbehilfe"
</item>

<item primeA>
/1 = "Pflegeroboter"
</item>

<item primeB>
/1 = "sensorgesteuerte Heizungen"
</item>

<item primeC>
/1 = "Smart-Häuser"
</item>

<item primeD>
/1 = "Sterbehilfe"
</item>

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>

***********************************************************************
Symbol and neutral stimuli
**************************************************************

<item symbols>
/1 = "pic1.jpg"
/2 = "pic2.jpg"
/3 = "pic3.jpg"
/4 = "pic4.jpg"
/5 = "pic5.jpg"
/6 = "pic6.jpg"
/7 = "pic7.jpg"
/8 = "pic8.jpg"
/9 = "pic9.jpg"
/10 = "pic10.jpg"
/11 = "pic11.jpg"
/12 = "pic12.jpg"
/13 = "pic13.jpg"
/14 = "pic14.jpg"
/15 = "pic15.jpg"
/16 = "pic16.jpg"
/17 = "pic17.jpg"
/18 = "pic18.jpg"
/19 = "pic19.jpg"
/20 = "pic20.jpg"
/21 = "pic21.jpg"
/22 = "pic22.jpg"
/23 = "pic23.jpg"
/24 = "pic24.jpg"
/25 = "pic25.jpg"
/26 = "pic26.jpg"
/27 = "pic27.jpg"
/28 = "pic28.jpg"
/29 = "pic29.jpg"
/30 = "pic30.jpg"
/31 = "pic31.jpg"
/32 = "pic32.jpg"
/33 = "pic33.jpg"
/34 = "pic34.jpg"
/35 = "pic35.jpg"
/36 = "pic36.jpg"
/37 = "pic37.jpg"
/38 = "pic38.jpg"
/39 = "pic39.jpg"
/40 = "pic40.jpg"
/41 = "pic41.jpg"
/42 = "pic42.jpg"
/43 = "pic43.jpg"
/44 = "pic44.jpg"
/45 = "pic45.jpg"
/46 = "pic46.jpg"
/47 = "pic47.jpg"
/48 = "pic48.jpg"
/49 = "pic49.jpg"
/50 = "pic50.jpg"
/51 = "pic51.jpg"
/52 = "pic52.jpg"
/53 = "pic53.jpg"
/54 = "pic54.jpg"
/55 = "pic55.jpg"
/56 = "pic56.jpg"
/57 = "pic57.jpg"
/58 = "pic58.jpg"
/59 = "pic59.jpg"
/60 = "pic60.jpg"
/61 = "pic61.jpg"
/62 = "pic62.jpg"
/63 = "pic63.jpg"
/64 = "pic64.jpg"
/65 = "pic65.jpg"
/66 = "pic66.jpg"
/67 = "pic67.jpg"
/68 = "pic68.jpg"
/69 = "pic69.jpg"
/70 = "pic70.jpg"
/71 = "pic71.jpg"
/72 = "pic72.jpg"
/73 = "pic73.jpg"
/74 = "pic74.jpg"
/75 = "pic75.jpg"
/76 = "pic76.jpg"
/77 = "pic77.jpg"
/78 = "pic78.jpg"
/79 = "pic79.jpg"
/80 = "pic80.jpg"
/81 = "pic81.jpg"
/82 = "pic82.jpg"
/83 = "pic83.jpg"
/84 = "pic84.jpg"
/85 = "pic85.jpg"
/86 = "pic86.jpg"
/87 = "pic87.jpg"
/88 = "pic88.jpg"
/89 = "pic89.jpg"
/90 = "pic90.jpg"
/91 = "pic91.jpg"
/92 = "pic92.jpg"
/93 = "pic93.jpg"
/94 = "pic94.jpg"
/95 = "pic95.jpg"
/96 = "pic96.jpg"
/97 = "pic97.jpg"
/98 = "pic98.jpg"
/99 = "pic99.jpg"
/100 = "pic100.jpg"
/101 = "pic101.jpg"
/102 = "pic102.jpg"
/103 = "pic103.jpg"
/104 = "pic104.jpg"
/105 = "pic105.jpg"
/106 = "pic106.jpg"
/107 = "pic107.jpg"
/108 = "pic108.jpg"
/109 = "pic109.jpg"
/110 = "pic110.jpg"
/111 = "pic111.jpg"
/112 = "pic112.jpg"
/113 = "pic113.jpg"
/114 = "pic114.jpg"
/115 = "pic115.jpg"
/116 = "pic116.jpg"
/117 = "pic117.jpg"
/118 = "pic118.jpg"
/119 = "pic119.jpg"
/120 = "pic120.jpg"
/121 = "pic121.jpg"
/122 = "pic122.jpg"
/123 = "pic123.jpg"
/124 = "pic124.jpg"
/125 = "pic125.jpg"
/126 = "pic126.jpg"
/127 = "pic127.jpg"
/128 = "pic128.jpg"
/129 = "pic129.jpg"
/130 = "pic130.jpg"
/131 = "pic131.jpg"
/132 = "pic132.jpg"
/133 = "pic133.jpg"
/134 = "pic134.jpg"
/135 = "pic135.jpg"
/136 = "pic136.jpg"
/137 = "pic137.jpg"
/138 = "pic138.jpg"
/139 = "pic139.jpg"
/140 = "pic140.jpg"
/141 = "pic141.jpg"
/142 = "pic142.jpg"
/143 = "pic143.jpg"
/144 = "pic144.jpg"
/145 = "pic145.jpg"
/146 = "pic146.jpg"
/147 = "pic147.jpg"
/148 = "pic148.jpg"
/149 = "pic149.jpg"
/150 = "pic150.jpg"
/151 = "pic151.jpg"
/152 = "pic152.jpg"
/153 = "pic153.jpg"
/154 = "pic154.jpg"
/155 = "pic155.jpg"
/156 = "pic156.jpg"
/157 = "pic157.jpg"
/158 = "pic158.jpg"
/159 = "pic159.jpg"
/160 = "pic160.jpg"
/161 = "pic161.jpg"
/162 = "pic162.jpg"
/163 = "pic163.jpg"
/164 = "pic164.jpg"
/165 = "pic165.jpg"
/166 = "pic166.jpg"
/167 = "pic167.jpg"
/168 = "pic168.jpg"
/169 = "pic169.jpg"
/170 = "pic170.jpg"
/171 = "pic171.jpg"
/172 = "pic172.jpg"
/173 = "pic173.jpg"
/174 = "pic174.jpg"
/175 = "pic175.jpg"
/176 = "pic176.jpg"
/177 = "pic177.jpg"
/178 = "pic178.jpg"
/179 = "pic179.jpg"
/180 = "pic180.jpg"
/181 = "pic181.jpg"
/182 = "pic182.jpg"
/183 = "pic183.jpg"
/184 = "pic184.jpg"
/185 = "pic185.jpg"
/186 = "pic186.jpg"
/187 = "pic187.jpg"
/188 = "pic188.jpg"
/189 = "pic189.jpg"
/190 = "pic190.jpg"
/191 = "pic191.jpg"
/192 = "pic192.jpg"
/193 = "pic193.jpg"
/194 = "pic194.jpg"
/195 = "pic195.jpg"
/196 = "pic196.jpg"
/197 = "pic197.jpg"
/198 = "pic198.jpg"
/199 = "pic199.jpg"
/200 = "pic200.jpg"
</item>



**************************************************************************************************************
**************************************************************************************************************
    EDITABLE INSTRUCTIONS: change instructions here
**************************************************************************************************************
**************************************************************

<item instructions>
/ 1 = "This study examines how people make simple judgments.~n~nYou will see pairs of items flashed one after the other. The first is a real life item. The second is a Chinese character. The real-life image simply serves as a warning signal for the Chinese character and should otherwise be ignored. Your job is to judge the visual pleasantness of the Chinese characters."
/ 2 = "If the Chinese character is less visually pleasing than average, press the left (E) <%expressions.buttoninstruct1%>. If the Chinese character is more visually pleasing than average, press the right (I) <%expressions.buttoninstruct1%>.

It is important to note that the real-life item can sometimes bias people’s judgments of the drawings. Because we are interested in how people can avoid being biased, please try your absolute best not to let the real-life items bias your judgment of the drawings! Give us an honest assessment of the drawings, regardless of the images that precede them."
/ 3 = "To get a feel for the task, we will begin with 10 practice trials. Again, your task is to judge whether the Chinese characters are less visually pleasing or more visual pleasing than average by pressing either the 'E' or 'I' <%expressions.buttoninstruct1%>."
/ 4 = "Practice is now complete and the task will now begin. As a reminder, if the Chinese character is less visually pleasing than average, press the left 'E' <%expressions.buttoninstruct1%>. If it is more visual pleasing than average, press the right 'I' <%expressions.buttoninstruct1%>."
</item>


<text summary>
/ items = ("You judged <% (trial.primeA.percentcorrect) %> % of the Chinese characters to be <% item.attributeAlabel.item.1 %> when they were preceded by a <% item.primeAlabel.item.1 %> picture.

You judged <% (100 - trial.primeB.percentcorrect) %> % of the Chinese characters to be <% item.attributeAlabel.item.1 %> when they were preceded by a <% item.primeBlabel.item.1 %> picture.")
/ size = (60%, 60%)
/ hjustify = left
 </text>

 
 ****************************************************************************************************
general instruction expressions: adjust the instruction text depending on device used to run script
****************************************************************************************************

<expressions>
/buttoninstruct1 = if (computer.touch) {"button";} else {"key";}
/buttoninstruct2 = if (computer.touch) {"Place your index fingers over the left and right response buttons";} else {"Place your index finger on the E and I keys";}
</expressions>

*******************************
General Helper Instructions
******************************

<text getReady>
/items = ("Get Ready:
~n<%expressions.buttoninstruct2%>")
/ fontstyle = ("Arial", 3.00%, false, false, false, false, 5, 1)
/ size = (80%, 40%)
</text>

***********************************************************
these instructions will be run if the script is
run on a touchscreen
***********************************************************

<text touchscreenInstruct1>
/ items = ("General Note on Touchscreen Usage
 for this Task:")
/ fontstyle = ("Arial", 5%, true, false, false, false, 5, 1)
/ position = (50%, 20%)
/ size = (80%, 20%)
/ vjustify = center
</text>

<text touchscreenInstruct2>
/ items = ("All necessary response buttons/keys will be provided at the bottom of your screen.

For example, here you see the <SPACEBAR>.
Tap it to continue to read instructions.")
/ fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
/ position = (50%, 50%)
/ size = (70%, 30%)
/ vjustify = center
</text>

**************************************************************************************************************
                                !!!REMAINING CODE: Customize after careful consideration only!!!
**************************************************************************************************************


**************************************************************************************************************
**************************************************************************************************************
    DEFAULTS
**************************************************************************************************************
**************************************************************************************************************
script requires Inquisit 5.0.0.0 or higher


<defaults>
/canvasaspectratio = (4,3)
/minimumversion = "5.0.0.0"
/ fontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ screencolor = black
/ txbgcolor = black
/ txcolor = white
</defaults>

**************************************************************************************************************
**************************************************************************************************************
    DATA
**************************************************************************************************************
**************************************************************************************************************

******************
Raw Data Files
******************

<data>
/columns = (build, computer.platform, date, time, subject, blockcode, blocknum, trialcode, trialnum, values.primestim, values.targetstim,
                response, correct, latency,
                trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect)
/separatefiles = true
</data>

*******************
Summary Data File
*******************

<summarydata>
/columns = (script.filename, script.startdate, script.starttime, script.subjectid, script.elapsedtime, computer.platform, values.completed,
trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect)
/ separatefiles = true
</summarydata>

**************************************************************************************************************
**************************************************************************************************************
    VALUES: automatically updated
**************************************************************************************************************
**************************************************************************************************************

completed:                                    0 = script was not completed; 1 = script was completed (all conditions run)
/targetstim:                                stores the itemnumber of the current target stimulus
/primestim:                                    stores the itemnumber of the current prime stimulus

<values>
/completed = 0
/targetstim = 0
/primestim = 0
</values>

**************************************************************************************************************
**************************************************************************************************************
    EXPRESSIONS
**************************************************************************************************************
**************************************************************************************************************
expressions>
/ a = trial.primeA.percentcorrect
/ b = trial.primeB.percentcorrect
</expressions>

**************************************************************************************************************
**************************************************************************************************************
    INSTRUCTIONS
**************************************************************************************************************
**************************************************************************************************************

list instructions>
/ items = (1, 2, 3, 4, 5, 6, 7)
/ resetinterval = 20
/ selectionmode = sequence
</list>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 85%)
/ valign = bottom
/ select = sequence
</text>

<text spacebar>
/ items = ("Press the SPACE BAR to begin.")
/ position = (50%, 95%)
/ valign = bottom
</text>

<trial instructions>
/ stimulustimes = [1=instructions, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

*****************************
General Helper Trial
*****************************

This trial is used when participants are asked to place their fingers on specific response
buttons. On the touchscreen, this trial presents the (inactive) response buttons to the participants.
<trial getReady>
/ stimulusframes = [1 = getReady]
/ trialduration = 5000
/ validresponse = (18, 23)
/ beginresponsetime = 5000
/ errormessage = false
/ recorddata = false
</trial>

<trial touchscreenInstruct>
/ skip = [
    !computer.touch
]
/ stimulusframes = [1 = touchscreenInstruct1, touchscreenInstruct2]
/ validresponse = (57)
/ recorddata = false
</trial>

**************************************************************************************************************
**************************************************************************************************************
    PERFORMANCE SUMMARY
**************************************************************************************************************
**************************************************************************************************************
<trial summary>
/ stimulustimes = [0=summary]
/ validresponse = (" ")
/ recorddata = false
</trial>

**************************************************************************************************************
**************************************************************************************************************
    STIMULI
**************************************************************************************************************
**************************************************************************************************************
<text target>
/ items = text
/ select = noreplace
/ size = (20%, 20%)
</text>


<text primeB>
/ items = primeB
/ size = (20%, 20%)
</text>

<text primeA>
/ items = primeA
/ size = (20%, 20%)
</text>

<text primeD>
/ items = primeD
/ size = (20%, 20%)
</text>

<text primeC>
/ items = primeC
/ size = (20%, 20%)
</text>

<text attributeAlabel>
/ items = attributeAlabel
/ valign = top
/ halign = right
/ position = (95%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeBlabel>
/ items = attributeBlabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeClabel>
/ items = attributeClabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeDlabel>
/ items = attributeDlabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text error>
/ position = (50%, 75%)
/ items = ("X")
/ color = red
/ fontstyle = ("Arial", 10%, true)
</text>

<picture mask>
/ items = ("mask.jpg")
/ size = (23%, 23%)
</picture>

<shape blank>
/ shape = rectangle
/ color = black
/ size = (20%, 20%)
</shape>


**************************************************************************************************************
**************************************************************************************************************
    TRIALS    
**************************************************************************************************************
**************************************************************************************************************
<trial primeApractice>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>


<trial primeBpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeCpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeC; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeDpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeD; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeNeutralpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=pleasant; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primea.currentitemnumber; values.targetstim = expressions.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

**************************************************************************************************************
**************************************************************************************************************
    BLOCKS
**************************************************************************************************************
**************************************************************************************************************
<block touchscreenInfo>
/ trials = [1 = touchscreenInstruct]
</block>


<block practice>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1-3 = instructions; 4 = getReady; 5-14 = noreplace(primeApractice, primeBpractice, primeNeutralpractice)]
/ recorddata = true
</block>


<block test>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1 = instructions; 2 = getReady; 3-50 = noreplace(primeA, primeB, primeNeutral)]
</block>


<block summary>
/ trials = [1=summary]
/ recorddata = false
</block>

**************************************************************************************************************
**************************************************************************************************************
    EXPERIMENT
**************************************************************************************************************
**************************************************************************************************************
<expt>
/ blocks = [
    1 = touchscreenInfo;
    2=practice;
    3=test;
    4=summary;
]
/onexptend = [values.completed = 1]
</expt>

***********************************************************************
Test Monkey
***********************************************************************
<monkey>
/ latencydistribution = normal(500, 100)
/ percentcorrect = 90
</monkey>


**************************************************************************************************************
                                                End of File
**************************************************************************************************************

Thank you very much in adavance!

Kerstin

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: 99K
Kerstin - Thursday, March 2, 2017
Hello,

i am using the AMP for creating an experiment for my masterarbeit.
Unfortunately I have a few problems with my script, so that every time I try to run the experiment I always get error messages.
I want to use 4 text items in my experiment and no pictures. So I listed and named the 4 items and copied every other detail from an example but also some of these elements don't work in my skript.
To make long things short I will list the error messages and hope you can help me.

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>
-> Filenot found. Please verify that the file path'C:/Users/Kerstin/AppData/Local/Temp/AMP-2 (1)/Masterarbeit/neutral.jpg' iscorrect.

*Stimuli*
<text target>
/ items = text
/ select = noreplace
/ size = (20%, 20%)
</text>
 ->could not locate item text

<picture mask>
/ items = ("mask.jpg")
/ size = (23%, 23%)
</picture>

1)     ->File not found. Please verify that the file path'C:/Users/Kerstin/AppData/Local/Temp/AMP-2 (1)/Masterarbeit/neutral.jpg' iscorrect.


*tirals*
<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=pleasant; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primea.currentitemnumber; values.targetstim = expressions.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

Expression'expressions.target.currentitemnumber' is invalid. Expression contains anunknown element or property name.

To get an impression of how my skript looks like I copied it. It looks like this:




<item attributeAlabel>
/1 = "Unleasant"
</item>

<item attributeBlabel>
/1 = "Pleasant"
</item>

<item attributeClabel>
/1 = "Unpleasant"
</item>

<item attributeDlabel>
/1 = "Pleasant"
</item>

<item primeAlabel>
/1 = "Pflegeroboter"
</item>

<item primeBlabel>
/1 = "sensorgesteuerte Heizungen"
</item>

<item primeClabel>
/1 = "Smart-Häuser"
</item>

<item primeDlabel>
/1 = "Sterbehilfe"
</item>

<item primeA>
/1 = "Pflegeroboter"
</item>

<item primeB>
/1 = "sensorgesteuerte Heizungen"
</item>

<item primeC>
/1 = "Smart-Häuser"
</item>

<item primeD>
/1 = "Sterbehilfe"
</item>

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>

***********************************************************************
Symbol and neutral stimuli
**************************************************************

<item symbols>
/1 = "pic1.jpg"
/2 = "pic2.jpg"
/3 = "pic3.jpg"
/4 = "pic4.jpg"
/5 = "pic5.jpg"
/6 = "pic6.jpg"
/7 = "pic7.jpg"
/8 = "pic8.jpg"
/9 = "pic9.jpg"
/10 = "pic10.jpg"
/11 = "pic11.jpg"
/12 = "pic12.jpg"
/13 = "pic13.jpg"
/14 = "pic14.jpg"
/15 = "pic15.jpg"
/16 = "pic16.jpg"
/17 = "pic17.jpg"
/18 = "pic18.jpg"
/19 = "pic19.jpg"
/20 = "pic20.jpg"
/21 = "pic21.jpg"
/22 = "pic22.jpg"
/23 = "pic23.jpg"
/24 = "pic24.jpg"
/25 = "pic25.jpg"
/26 = "pic26.jpg"
/27 = "pic27.jpg"
/28 = "pic28.jpg"
/29 = "pic29.jpg"
/30 = "pic30.jpg"
/31 = "pic31.jpg"
/32 = "pic32.jpg"
/33 = "pic33.jpg"
/34 = "pic34.jpg"
/35 = "pic35.jpg"
/36 = "pic36.jpg"
/37 = "pic37.jpg"
/38 = "pic38.jpg"
/39 = "pic39.jpg"
/40 = "pic40.jpg"
/41 = "pic41.jpg"
/42 = "pic42.jpg"
/43 = "pic43.jpg"
/44 = "pic44.jpg"
/45 = "pic45.jpg"
/46 = "pic46.jpg"
/47 = "pic47.jpg"
/48 = "pic48.jpg"
/49 = "pic49.jpg"
/50 = "pic50.jpg"
/51 = "pic51.jpg"
/52 = "pic52.jpg"
/53 = "pic53.jpg"
/54 = "pic54.jpg"
/55 = "pic55.jpg"
/56 = "pic56.jpg"
/57 = "pic57.jpg"
/58 = "pic58.jpg"
/59 = "pic59.jpg"
/60 = "pic60.jpg"
/61 = "pic61.jpg"
/62 = "pic62.jpg"
/63 = "pic63.jpg"
/64 = "pic64.jpg"
/65 = "pic65.jpg"
/66 = "pic66.jpg"
/67 = "pic67.jpg"
/68 = "pic68.jpg"
/69 = "pic69.jpg"
/70 = "pic70.jpg"
/71 = "pic71.jpg"
/72 = "pic72.jpg"
/73 = "pic73.jpg"
/74 = "pic74.jpg"
/75 = "pic75.jpg"
/76 = "pic76.jpg"
/77 = "pic77.jpg"
/78 = "pic78.jpg"
/79 = "pic79.jpg"
/80 = "pic80.jpg"
/81 = "pic81.jpg"
/82 = "pic82.jpg"
/83 = "pic83.jpg"
/84 = "pic84.jpg"
/85 = "pic85.jpg"
/86 = "pic86.jpg"
/87 = "pic87.jpg"
/88 = "pic88.jpg"
/89 = "pic89.jpg"
/90 = "pic90.jpg"
/91 = "pic91.jpg"
/92 = "pic92.jpg"
/93 = "pic93.jpg"
/94 = "pic94.jpg"
/95 = "pic95.jpg"
/96 = "pic96.jpg"
/97 = "pic97.jpg"
/98 = "pic98.jpg"
/99 = "pic99.jpg"
/100 = "pic100.jpg"
/101 = "pic101.jpg"
/102 = "pic102.jpg"
/103 = "pic103.jpg"
/104 = "pic104.jpg"
/105 = "pic105.jpg"
/106 = "pic106.jpg"
/107 = "pic107.jpg"
/108 = "pic108.jpg"
/109 = "pic109.jpg"
/110 = "pic110.jpg"
/111 = "pic111.jpg"
/112 = "pic112.jpg"
/113 = "pic113.jpg"
/114 = "pic114.jpg"
/115 = "pic115.jpg"
/116 = "pic116.jpg"
/117 = "pic117.jpg"
/118 = "pic118.jpg"
/119 = "pic119.jpg"
/120 = "pic120.jpg"
/121 = "pic121.jpg"
/122 = "pic122.jpg"
/123 = "pic123.jpg"
/124 = "pic124.jpg"
/125 = "pic125.jpg"
/126 = "pic126.jpg"
/127 = "pic127.jpg"
/128 = "pic128.jpg"
/129 = "pic129.jpg"
/130 = "pic130.jpg"
/131 = "pic131.jpg"
/132 = "pic132.jpg"
/133 = "pic133.jpg"
/134 = "pic134.jpg"
/135 = "pic135.jpg"
/136 = "pic136.jpg"
/137 = "pic137.jpg"
/138 = "pic138.jpg"
/139 = "pic139.jpg"
/140 = "pic140.jpg"
/141 = "pic141.jpg"
/142 = "pic142.jpg"
/143 = "pic143.jpg"
/144 = "pic144.jpg"
/145 = "pic145.jpg"
/146 = "pic146.jpg"
/147 = "pic147.jpg"
/148 = "pic148.jpg"
/149 = "pic149.jpg"
/150 = "pic150.jpg"
/151 = "pic151.jpg"
/152 = "pic152.jpg"
/153 = "pic153.jpg"
/154 = "pic154.jpg"
/155 = "pic155.jpg"
/156 = "pic156.jpg"
/157 = "pic157.jpg"
/158 = "pic158.jpg"
/159 = "pic159.jpg"
/160 = "pic160.jpg"
/161 = "pic161.jpg"
/162 = "pic162.jpg"
/163 = "pic163.jpg"
/164 = "pic164.jpg"
/165 = "pic165.jpg"
/166 = "pic166.jpg"
/167 = "pic167.jpg"
/168 = "pic168.jpg"
/169 = "pic169.jpg"
/170 = "pic170.jpg"
/171 = "pic171.jpg"
/172 = "pic172.jpg"
/173 = "pic173.jpg"
/174 = "pic174.jpg"
/175 = "pic175.jpg"
/176 = "pic176.jpg"
/177 = "pic177.jpg"
/178 = "pic178.jpg"
/179 = "pic179.jpg"
/180 = "pic180.jpg"
/181 = "pic181.jpg"
/182 = "pic182.jpg"
/183 = "pic183.jpg"
/184 = "pic184.jpg"
/185 = "pic185.jpg"
/186 = "pic186.jpg"
/187 = "pic187.jpg"
/188 = "pic188.jpg"
/189 = "pic189.jpg"
/190 = "pic190.jpg"
/191 = "pic191.jpg"
/192 = "pic192.jpg"
/193 = "pic193.jpg"
/194 = "pic194.jpg"
/195 = "pic195.jpg"
/196 = "pic196.jpg"
/197 = "pic197.jpg"
/198 = "pic198.jpg"
/199 = "pic199.jpg"
/200 = "pic200.jpg"
</item>



**************************************************************************************************************
**************************************************************************************************************
    EDITABLE INSTRUCTIONS: change instructions here
**************************************************************************************************************
**************************************************************

<item instructions>
/ 1 = "This study examines how people make simple judgments.~n~nYou will see pairs of items flashed one after the other. The first is a real life item. The second is a Chinese character. The real-life image simply serves as a warning signal for the Chinese character and should otherwise be ignored. Your job is to judge the visual pleasantness of the Chinese characters."
/ 2 = "If the Chinese character is less visually pleasing than average, press the left (E) <%expressions.buttoninstruct1%>. If the Chinese character is more visually pleasing than average, press the right (I) <%expressions.buttoninstruct1%>.

It is important to note that the real-life item can sometimes bias people’s judgments of the drawings. Because we are interested in how people can avoid being biased, please try your absolute best not to let the real-life items bias your judgment of the drawings! Give us an honest assessment of the drawings, regardless of the images that precede them."
/ 3 = "To get a feel for the task, we will begin with 10 practice trials. Again, your task is to judge whether the Chinese characters are less visually pleasing or more visual pleasing than average by pressing either the 'E' or 'I' <%expressions.buttoninstruct1%>."
/ 4 = "Practice is now complete and the task will now begin. As a reminder, if the Chinese character is less visually pleasing than average, press the left 'E' <%expressions.buttoninstruct1%>. If it is more visual pleasing than average, press the right 'I' <%expressions.buttoninstruct1%>."
</item>


<text summary>
/ items = ("You judged <% (trial.primeA.percentcorrect) %> % of the Chinese characters to be <% item.attributeAlabel.item.1 %> when they were preceded by a <% item.primeAlabel.item.1 %> picture.

You judged <% (100 - trial.primeB.percentcorrect) %> % of the Chinese characters to be <% item.attributeAlabel.item.1 %> when they were preceded by a <% item.primeBlabel.item.1 %> picture.")
/ size = (60%, 60%)
/ hjustify = left
 </text>

 
 ****************************************************************************************************
general instruction expressions: adjust the instruction text depending on device used to run script
****************************************************************************************************

<expressions>
/buttoninstruct1 = if (computer.touch) {"button";} else {"key";}
/buttoninstruct2 = if (computer.touch) {"Place your index fingers over the left and right response buttons";} else {"Place your index finger on the E and I keys";}
</expressions>

*******************************
General Helper Instructions
******************************

<text getReady>
/items = ("Get Ready:
~n<%expressions.buttoninstruct2%>")
/ fontstyle = ("Arial", 3.00%, false, false, false, false, 5, 1)
/ size = (80%, 40%)
</text>

***********************************************************
these instructions will be run if the script is
run on a touchscreen
***********************************************************

<text touchscreenInstruct1>
/ items = ("General Note on Touchscreen Usage
 for this Task:")
/ fontstyle = ("Arial", 5%, true, false, false, false, 5, 1)
/ position = (50%, 20%)
/ size = (80%, 20%)
/ vjustify = center
</text>

<text touchscreenInstruct2>
/ items = ("All necessary response buttons/keys will be provided at the bottom of your screen.

For example, here you see the <SPACEBAR>.
Tap it to continue to read instructions.")
/ fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
/ position = (50%, 50%)
/ size = (70%, 30%)
/ vjustify = center
</text>

**************************************************************************************************************
                                !!!REMAINING CODE: Customize after careful consideration only!!!
**************************************************************************************************************


**************************************************************************************************************
**************************************************************************************************************
    DEFAULTS
**************************************************************************************************************
**************************************************************************************************************
script requires Inquisit 5.0.0.0 or higher


<defaults>
/canvasaspectratio = (4,3)
/minimumversion = "5.0.0.0"
/ fontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ screencolor = black
/ txbgcolor = black
/ txcolor = white
</defaults>

**************************************************************************************************************
**************************************************************************************************************
    DATA
**************************************************************************************************************
**************************************************************************************************************

******************
Raw Data Files
******************

<data>
/columns = (build, computer.platform, date, time, subject, blockcode, blocknum, trialcode, trialnum, values.primestim, values.targetstim,
                response, correct, latency,
                trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect)
/separatefiles = true
</data>

*******************
Summary Data File
*******************

<summarydata>
/columns = (script.filename, script.startdate, script.starttime, script.subjectid, script.elapsedtime, computer.platform, values.completed,
trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect)
/ separatefiles = true
</summarydata>

**************************************************************************************************************
**************************************************************************************************************
    VALUES: automatically updated
**************************************************************************************************************
**************************************************************************************************************

completed:                                    0 = script was not completed; 1 = script was completed (all conditions run)
/targetstim:                                stores the itemnumber of the current target stimulus
/primestim:                                    stores the itemnumber of the current prime stimulus

<values>
/completed = 0
/targetstim = 0
/primestim = 0
</values>

**************************************************************************************************************
**************************************************************************************************************
    EXPRESSIONS
**************************************************************************************************************
**************************************************************************************************************
expressions>
/ a = trial.primeA.percentcorrect
/ b = trial.primeB.percentcorrect
</expressions>

**************************************************************************************************************
**************************************************************************************************************
    INSTRUCTIONS
**************************************************************************************************************
**************************************************************************************************************

list instructions>
/ items = (1, 2, 3, 4, 5, 6, 7)
/ resetinterval = 20
/ selectionmode = sequence
</list>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 85%)
/ valign = bottom
/ select = sequence
</text>

<text spacebar>
/ items = ("Press the SPACE BAR to begin.")
/ position = (50%, 95%)
/ valign = bottom
</text>

<trial instructions>
/ stimulustimes = [1=instructions, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

*****************************
General Helper Trial
*****************************

This trial is used when participants are asked to place their fingers on specific response
buttons. On the touchscreen, this trial presents the (inactive) response buttons to the participants.
<trial getReady>
/ stimulusframes = [1 = getReady]
/ trialduration = 5000
/ validresponse = (18, 23)
/ beginresponsetime = 5000
/ errormessage = false
/ recorddata = false
</trial>

<trial touchscreenInstruct>
/ skip = [
    !computer.touch
]
/ stimulusframes = [1 = touchscreenInstruct1, touchscreenInstruct2]
/ validresponse = (57)
/ recorddata = false
</trial>

**************************************************************************************************************
**************************************************************************************************************
    PERFORMANCE SUMMARY
**************************************************************************************************************
**************************************************************************************************************
<trial summary>
/ stimulustimes = [0=summary]
/ validresponse = (" ")
/ recorddata = false
</trial>

**************************************************************************************************************
**************************************************************************************************************
    STIMULI
**************************************************************************************************************
**************************************************************************************************************
<text target>
/ items = text
/ select = noreplace
/ size = (20%, 20%)
</text>


<text primeB>
/ items = primeB
/ size = (20%, 20%)
</text>

<text primeA>
/ items = primeA
/ size = (20%, 20%)
</text>

<text primeD>
/ items = primeD
/ size = (20%, 20%)
</text>

<text primeC>
/ items = primeC
/ size = (20%, 20%)
</text>

<text attributeAlabel>
/ items = attributeAlabel
/ valign = top
/ halign = right
/ position = (95%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeBlabel>
/ items = attributeBlabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeClabel>
/ items = attributeClabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeDlabel>
/ items = attributeDlabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text error>
/ position = (50%, 75%)
/ items = ("X")
/ color = red
/ fontstyle = ("Arial", 10%, true)
</text>

<picture mask>
/ items = ("mask.jpg")
/ size = (23%, 23%)
</picture>

<shape blank>
/ shape = rectangle
/ color = black
/ size = (20%, 20%)
</shape>


**************************************************************************************************************
**************************************************************************************************************
    TRIALS    
**************************************************************************************************************
**************************************************************************************************************
<trial primeApractice>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>


<trial primeBpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeCpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeC; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeDpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeD; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeNeutralpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=pleasant; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primea.currentitemnumber; values.targetstim = expressions.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

**************************************************************************************************************
**************************************************************************************************************
    BLOCKS
**************************************************************************************************************
**************************************************************************************************************
<block touchscreenInfo>
/ trials = [1 = touchscreenInstruct]
</block>


<block practice>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1-3 = instructions; 4 = getReady; 5-14 = noreplace(primeApractice, primeBpractice, primeNeutralpractice)]
/ recorddata = true
</block>


<block test>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1 = instructions; 2 = getReady; 3-50 = noreplace(primeA, primeB, primeNeutral)]
</block>


<block summary>
/ trials = [1=summary]
/ recorddata = false
</block>

**************************************************************************************************************
**************************************************************************************************************
    EXPERIMENT
**************************************************************************************************************
**************************************************************************************************************
<expt>
/ blocks = [
    1 = touchscreenInfo;
    2=practice;
    3=test;
    4=summary;
]
/onexptend = [values.completed = 1]
</expt>

***********************************************************************
Test Monkey
***********************************************************************
<monkey>
/ latencydistribution = normal(500, 100)
/ percentcorrect = 90
</monkey>


**************************************************************************************************************
                                                End of File
**************************************************************************************************************

Thank you very much in adavance!

Kerstin

The file not found errors are due to the fact that you are trying to run the script from the computer's temporary directory. Download the AMP file and store it in a *suitable* location on your computer, such as your Desktop or "My Files" folder.

For any image files you want to use, those need to reside in the same location.

The expression

/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]

is invalid because you do not have a <picture> element called "target" anymore. You have a <text> element, i.e. the thing needs to read



/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = text.target.currentitemnumber]
Kerstin
Kerstin
Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)
Group: Forum Members
Posts: 23, Visits: 29
Dave - Thursday, March 2, 2017
Kerstin - Thursday, March 2, 2017
Hello,

i am using the AMP for creating an experiment for my masterarbeit.
Unfortunately I have a few problems with my script, so that every time I try to run the experiment I always get error messages.
I want to use 4 text items in my experiment and no pictures. So I listed and named the 4 items and copied every other detail from an example but also some of these elements don't work in my skript.
To make long things short I will list the error messages and hope you can help me.

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>
-> Filenot found. Please verify that the file path'C:/Users/Kerstin/AppData/Local/Temp/AMP-2 (1)/Masterarbeit/neutral.jpg' iscorrect.

*Stimuli*
<text target>
/ items = text
/ select = noreplace
/ size = (20%, 20%)
</text>
 ->could not locate item text

<picture mask>
/ items = ("mask.jpg")
/ size = (23%, 23%)
</picture>

1)     ->File not found. Please verify that the file path'C:/Users/Kerstin/AppData/Local/Temp/AMP-2 (1)/Masterarbeit/neutral.jpg' iscorrect.


*tirals*
<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=pleasant; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primea.currentitemnumber; values.targetstim = expressions.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

Expression'expressions.target.currentitemnumber' is invalid. Expression contains anunknown element or property name.

To get an impression of how my skript looks like I copied it. It looks like this:




<item attributeAlabel>
/1 = "Unleasant"
</item>

<item attributeBlabel>
/1 = "Pleasant"
</item>

<item attributeClabel>
/1 = "Unpleasant"
</item>

<item attributeDlabel>
/1 = "Pleasant"
</item>

<item primeAlabel>
/1 = "Pflegeroboter"
</item>

<item primeBlabel>
/1 = "sensorgesteuerte Heizungen"
</item>

<item primeClabel>
/1 = "Smart-Häuser"
</item>

<item primeDlabel>
/1 = "Sterbehilfe"
</item>

<item primeA>
/1 = "Pflegeroboter"
</item>

<item primeB>
/1 = "sensorgesteuerte Heizungen"
</item>

<item primeC>
/1 = "Smart-Häuser"
</item>

<item primeD>
/1 = "Sterbehilfe"
</item>

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>

***********************************************************************
Symbol and neutral stimuli
**************************************************************

<item symbols>
/1 = "pic1.jpg"
/2 = "pic2.jpg"
/3 = "pic3.jpg"
/4 = "pic4.jpg"
/5 = "pic5.jpg"
/6 = "pic6.jpg"
/7 = "pic7.jpg"
/8 = "pic8.jpg"
/9 = "pic9.jpg"
/10 = "pic10.jpg"
/11 = "pic11.jpg"
/12 = "pic12.jpg"
/13 = "pic13.jpg"
/14 = "pic14.jpg"
/15 = "pic15.jpg"
/16 = "pic16.jpg"
/17 = "pic17.jpg"
/18 = "pic18.jpg"
/19 = "pic19.jpg"
/20 = "pic20.jpg"
/21 = "pic21.jpg"
/22 = "pic22.jpg"
/23 = "pic23.jpg"
/24 = "pic24.jpg"
/25 = "pic25.jpg"
/26 = "pic26.jpg"
/27 = "pic27.jpg"
/28 = "pic28.jpg"
/29 = "pic29.jpg"
/30 = "pic30.jpg"
/31 = "pic31.jpg"
/32 = "pic32.jpg"
/33 = "pic33.jpg"
/34 = "pic34.jpg"
/35 = "pic35.jpg"
/36 = "pic36.jpg"
/37 = "pic37.jpg"
/38 = "pic38.jpg"
/39 = "pic39.jpg"
/40 = "pic40.jpg"
/41 = "pic41.jpg"
/42 = "pic42.jpg"
/43 = "pic43.jpg"
/44 = "pic44.jpg"
/45 = "pic45.jpg"
/46 = "pic46.jpg"
/47 = "pic47.jpg"
/48 = "pic48.jpg"
/49 = "pic49.jpg"
/50 = "pic50.jpg"
/51 = "pic51.jpg"
/52 = "pic52.jpg"
/53 = "pic53.jpg"
/54 = "pic54.jpg"
/55 = "pic55.jpg"
/56 = "pic56.jpg"
/57 = "pic57.jpg"
/58 = "pic58.jpg"
/59 = "pic59.jpg"
/60 = "pic60.jpg"
/61 = "pic61.jpg"
/62 = "pic62.jpg"
/63 = "pic63.jpg"
/64 = "pic64.jpg"
/65 = "pic65.jpg"
/66 = "pic66.jpg"
/67 = "pic67.jpg"
/68 = "pic68.jpg"
/69 = "pic69.jpg"
/70 = "pic70.jpg"
/71 = "pic71.jpg"
/72 = "pic72.jpg"
/73 = "pic73.jpg"
/74 = "pic74.jpg"
/75 = "pic75.jpg"
/76 = "pic76.jpg"
/77 = "pic77.jpg"
/78 = "pic78.jpg"
/79 = "pic79.jpg"
/80 = "pic80.jpg"
/81 = "pic81.jpg"
/82 = "pic82.jpg"
/83 = "pic83.jpg"
/84 = "pic84.jpg"
/85 = "pic85.jpg"
/86 = "pic86.jpg"
/87 = "pic87.jpg"
/88 = "pic88.jpg"
/89 = "pic89.jpg"
/90 = "pic90.jpg"
/91 = "pic91.jpg"
/92 = "pic92.jpg"
/93 = "pic93.jpg"
/94 = "pic94.jpg"
/95 = "pic95.jpg"
/96 = "pic96.jpg"
/97 = "pic97.jpg"
/98 = "pic98.jpg"
/99 = "pic99.jpg"
/100 = "pic100.jpg"
/101 = "pic101.jpg"
/102 = "pic102.jpg"
/103 = "pic103.jpg"
/104 = "pic104.jpg"
/105 = "pic105.jpg"
/106 = "pic106.jpg"
/107 = "pic107.jpg"
/108 = "pic108.jpg"
/109 = "pic109.jpg"
/110 = "pic110.jpg"
/111 = "pic111.jpg"
/112 = "pic112.jpg"
/113 = "pic113.jpg"
/114 = "pic114.jpg"
/115 = "pic115.jpg"
/116 = "pic116.jpg"
/117 = "pic117.jpg"
/118 = "pic118.jpg"
/119 = "pic119.jpg"
/120 = "pic120.jpg"
/121 = "pic121.jpg"
/122 = "pic122.jpg"
/123 = "pic123.jpg"
/124 = "pic124.jpg"
/125 = "pic125.jpg"
/126 = "pic126.jpg"
/127 = "pic127.jpg"
/128 = "pic128.jpg"
/129 = "pic129.jpg"
/130 = "pic130.jpg"
/131 = "pic131.jpg"
/132 = "pic132.jpg"
/133 = "pic133.jpg"
/134 = "pic134.jpg"
/135 = "pic135.jpg"
/136 = "pic136.jpg"
/137 = "pic137.jpg"
/138 = "pic138.jpg"
/139 = "pic139.jpg"
/140 = "pic140.jpg"
/141 = "pic141.jpg"
/142 = "pic142.jpg"
/143 = "pic143.jpg"
/144 = "pic144.jpg"
/145 = "pic145.jpg"
/146 = "pic146.jpg"
/147 = "pic147.jpg"
/148 = "pic148.jpg"
/149 = "pic149.jpg"
/150 = "pic150.jpg"
/151 = "pic151.jpg"
/152 = "pic152.jpg"
/153 = "pic153.jpg"
/154 = "pic154.jpg"
/155 = "pic155.jpg"
/156 = "pic156.jpg"
/157 = "pic157.jpg"
/158 = "pic158.jpg"
/159 = "pic159.jpg"
/160 = "pic160.jpg"
/161 = "pic161.jpg"
/162 = "pic162.jpg"
/163 = "pic163.jpg"
/164 = "pic164.jpg"
/165 = "pic165.jpg"
/166 = "pic166.jpg"
/167 = "pic167.jpg"
/168 = "pic168.jpg"
/169 = "pic169.jpg"
/170 = "pic170.jpg"
/171 = "pic171.jpg"
/172 = "pic172.jpg"
/173 = "pic173.jpg"
/174 = "pic174.jpg"
/175 = "pic175.jpg"
/176 = "pic176.jpg"
/177 = "pic177.jpg"
/178 = "pic178.jpg"
/179 = "pic179.jpg"
/180 = "pic180.jpg"
/181 = "pic181.jpg"
/182 = "pic182.jpg"
/183 = "pic183.jpg"
/184 = "pic184.jpg"
/185 = "pic185.jpg"
/186 = "pic186.jpg"
/187 = "pic187.jpg"
/188 = "pic188.jpg"
/189 = "pic189.jpg"
/190 = "pic190.jpg"
/191 = "pic191.jpg"
/192 = "pic192.jpg"
/193 = "pic193.jpg"
/194 = "pic194.jpg"
/195 = "pic195.jpg"
/196 = "pic196.jpg"
/197 = "pic197.jpg"
/198 = "pic198.jpg"
/199 = "pic199.jpg"
/200 = "pic200.jpg"
</item>



**************************************************************************************************************
**************************************************************************************************************
    EDITABLE INSTRUCTIONS: change instructions here
**************************************************************************************************************
**************************************************************

<item instructions>
/ 1 = "This study examines how people make simple judgments.~n~nYou will see pairs of items flashed one after the other. The first is a real life item. The second is a Chinese character. The real-life image simply serves as a warning signal for the Chinese character and should otherwise be ignored. Your job is to judge the visual pleasantness of the Chinese characters."
/ 2 = "If the Chinese character is less visually pleasing than average, press the left (E) <%expressions.buttoninstruct1%>. If the Chinese character is more visually pleasing than average, press the right (I) <%expressions.buttoninstruct1%>.

It is important to note that the real-life item can sometimes bias people’s judgments of the drawings. Because we are interested in how people can avoid being biased, please try your absolute best not to let the real-life items bias your judgment of the drawings! Give us an honest assessment of the drawings, regardless of the images that precede them."
/ 3 = "To get a feel for the task, we will begin with 10 practice trials. Again, your task is to judge whether the Chinese characters are less visually pleasing or more visual pleasing than average by pressing either the 'E' or 'I' <%expressions.buttoninstruct1%>."
/ 4 = "Practice is now complete and the task will now begin. As a reminder, if the Chinese character is less visually pleasing than average, press the left 'E' <%expressions.buttoninstruct1%>. If it is more visual pleasing than average, press the right 'I' <%expressions.buttoninstruct1%>."
</item>


<text summary>
/ items = ("You judged <% (trial.primeA.percentcorrect) %> % of the Chinese characters to be <% item.attributeAlabel.item.1 %> when they were preceded by a <% item.primeAlabel.item.1 %> picture.

You judged <% (100 - trial.primeB.percentcorrect) %> % of the Chinese characters to be <% item.attributeAlabel.item.1 %> when they were preceded by a <% item.primeBlabel.item.1 %> picture.")
/ size = (60%, 60%)
/ hjustify = left
 </text>

 
 ****************************************************************************************************
general instruction expressions: adjust the instruction text depending on device used to run script
****************************************************************************************************

<expressions>
/buttoninstruct1 = if (computer.touch) {"button";} else {"key";}
/buttoninstruct2 = if (computer.touch) {"Place your index fingers over the left and right response buttons";} else {"Place your index finger on the E and I keys";}
</expressions>

*******************************
General Helper Instructions
******************************

<text getReady>
/items = ("Get Ready:
~n<%expressions.buttoninstruct2%>")
/ fontstyle = ("Arial", 3.00%, false, false, false, false, 5, 1)
/ size = (80%, 40%)
</text>

***********************************************************
these instructions will be run if the script is
run on a touchscreen
***********************************************************

<text touchscreenInstruct1>
/ items = ("General Note on Touchscreen Usage
 for this Task:")
/ fontstyle = ("Arial", 5%, true, false, false, false, 5, 1)
/ position = (50%, 20%)
/ size = (80%, 20%)
/ vjustify = center
</text>

<text touchscreenInstruct2>
/ items = ("All necessary response buttons/keys will be provided at the bottom of your screen.

For example, here you see the <SPACEBAR>.
Tap it to continue to read instructions.")
/ fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
/ position = (50%, 50%)
/ size = (70%, 30%)
/ vjustify = center
</text>

**************************************************************************************************************
                                !!!REMAINING CODE: Customize after careful consideration only!!!
**************************************************************************************************************


**************************************************************************************************************
**************************************************************************************************************
    DEFAULTS
**************************************************************************************************************
**************************************************************************************************************
script requires Inquisit 5.0.0.0 or higher


<defaults>
/canvasaspectratio = (4,3)
/minimumversion = "5.0.0.0"
/ fontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ screencolor = black
/ txbgcolor = black
/ txcolor = white
</defaults>

**************************************************************************************************************
**************************************************************************************************************
    DATA
**************************************************************************************************************
**************************************************************************************************************

******************
Raw Data Files
******************

<data>
/columns = (build, computer.platform, date, time, subject, blockcode, blocknum, trialcode, trialnum, values.primestim, values.targetstim,
                response, correct, latency,
                trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect)
/separatefiles = true
</data>

*******************
Summary Data File
*******************

<summarydata>
/columns = (script.filename, script.startdate, script.starttime, script.subjectid, script.elapsedtime, computer.platform, values.completed,
trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect)
/ separatefiles = true
</summarydata>

**************************************************************************************************************
**************************************************************************************************************
    VALUES: automatically updated
**************************************************************************************************************
**************************************************************************************************************

completed:                                    0 = script was not completed; 1 = script was completed (all conditions run)
/targetstim:                                stores the itemnumber of the current target stimulus
/primestim:                                    stores the itemnumber of the current prime stimulus

<values>
/completed = 0
/targetstim = 0
/primestim = 0
</values>

**************************************************************************************************************
**************************************************************************************************************
    EXPRESSIONS
**************************************************************************************************************
**************************************************************************************************************
expressions>
/ a = trial.primeA.percentcorrect
/ b = trial.primeB.percentcorrect
</expressions>

**************************************************************************************************************
**************************************************************************************************************
    INSTRUCTIONS
**************************************************************************************************************
**************************************************************************************************************

list instructions>
/ items = (1, 2, 3, 4, 5, 6, 7)
/ resetinterval = 20
/ selectionmode = sequence
</list>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 85%)
/ valign = bottom
/ select = sequence
</text>

<text spacebar>
/ items = ("Press the SPACE BAR to begin.")
/ position = (50%, 95%)
/ valign = bottom
</text>

<trial instructions>
/ stimulustimes = [1=instructions, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

*****************************
General Helper Trial
*****************************

This trial is used when participants are asked to place their fingers on specific response
buttons. On the touchscreen, this trial presents the (inactive) response buttons to the participants.
<trial getReady>
/ stimulusframes = [1 = getReady]
/ trialduration = 5000
/ validresponse = (18, 23)
/ beginresponsetime = 5000
/ errormessage = false
/ recorddata = false
</trial>

<trial touchscreenInstruct>
/ skip = [
    !computer.touch
]
/ stimulusframes = [1 = touchscreenInstruct1, touchscreenInstruct2]
/ validresponse = (57)
/ recorddata = false
</trial>

**************************************************************************************************************
**************************************************************************************************************
    PERFORMANCE SUMMARY
**************************************************************************************************************
**************************************************************************************************************
<trial summary>
/ stimulustimes = [0=summary]
/ validresponse = (" ")
/ recorddata = false
</trial>

**************************************************************************************************************
**************************************************************************************************************
    STIMULI
**************************************************************************************************************
**************************************************************************************************************
<text target>
/ items = text
/ select = noreplace
/ size = (20%, 20%)
</text>


<text primeB>
/ items = primeB
/ size = (20%, 20%)
</text>

<text primeA>
/ items = primeA
/ size = (20%, 20%)
</text>

<text primeD>
/ items = primeD
/ size = (20%, 20%)
</text>

<text primeC>
/ items = primeC
/ size = (20%, 20%)
</text>

<text attributeAlabel>
/ items = attributeAlabel
/ valign = top
/ halign = right
/ position = (95%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeBlabel>
/ items = attributeBlabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeClabel>
/ items = attributeClabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeDlabel>
/ items = attributeDlabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text error>
/ position = (50%, 75%)
/ items = ("X")
/ color = red
/ fontstyle = ("Arial", 10%, true)
</text>

<picture mask>
/ items = ("mask.jpg")
/ size = (23%, 23%)
</picture>

<shape blank>
/ shape = rectangle
/ color = black
/ size = (20%, 20%)
</shape>


**************************************************************************************************************
**************************************************************************************************************
    TRIALS    
**************************************************************************************************************
**************************************************************************************************************
<trial primeApractice>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>


<trial primeBpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeCpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeC; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeDpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeD; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeNeutralpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=pleasant; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primea.currentitemnumber; values.targetstim = expressions.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

**************************************************************************************************************
**************************************************************************************************************
    BLOCKS
**************************************************************************************************************
**************************************************************************************************************
<block touchscreenInfo>
/ trials = [1 = touchscreenInstruct]
</block>


<block practice>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1-3 = instructions; 4 = getReady; 5-14 = noreplace(primeApractice, primeBpractice, primeNeutralpractice)]
/ recorddata = true
</block>


<block test>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1 = instructions; 2 = getReady; 3-50 = noreplace(primeA, primeB, primeNeutral)]
</block>


<block summary>
/ trials = [1=summary]
/ recorddata = false
</block>

**************************************************************************************************************
**************************************************************************************************************
    EXPERIMENT
**************************************************************************************************************
**************************************************************************************************************
<expt>
/ blocks = [
    1 = touchscreenInfo;
    2=practice;
    3=test;
    4=summary;
]
/onexptend = [values.completed = 1]
</expt>

***********************************************************************
Test Monkey
***********************************************************************
<monkey>
/ latencydistribution = normal(500, 100)
/ percentcorrect = 90
</monkey>


**************************************************************************************************************
                                                End of File
**************************************************************************************************************

Thank you very much in adavance!

Kerstin

The file not found errors are due to the fact that you are trying to run the script from the computer's temporary directory. Download the AMP file and store it in a *suitable* location on your computer, such as your Desktop or "My Files" folder.

For any image files you want to use, those need to reside in the same location.

The expression

/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]

is invalid because you do not have a <picture> element called "target" anymore. You have a <text> element, i.e. the thing needs to read



/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = text.target.currentitemnumber]

Dear Dave,

thank you very much for your quick answer.
I have changed the steps you recommanded but unfortunately the skript still doesn't work.

<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

The file can still not be found: Please verify that the file path 'C:/Users/Kerstin/Desktop/neutral.jpg' is correct. What is wrong with that file?

<text target>
/ items = text -> the word "text" seems to be wrong. What do I have to use here? The message says that the item "text" cannot be located?
/ select = noreplace
/ size = (20%, 20%)
</text>

<trial primeNeutral>  
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>
-> Expression 'picture.target.currentitemnumber' is invalid. Expression contains an unknown element or property name.

Please tell me what I still do wrong. I have never worked with this program before and because I just copied most of the elements of the skript like the <trial primeNeutral> above, I have no idea what the program wants me to do.

Thank you very much again for your help.

Kerstin


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: 99K
Kerstin - Thursday, March 2, 2017
Dave - Thursday, March 2, 2017
Kerstin - Thursday, March 2, 2017
Hello,

i am using the AMP for creating an experiment for my masterarbeit.
Unfortunately I have a few problems with my script, so that every time I try to run the experiment I always get error messages.
I want to use 4 text items in my experiment and no pictures. So I listed and named the 4 items and copied every other detail from an example but also some of these elements don't work in my skript.
To make long things short I will list the error messages and hope you can help me.

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>
-> Filenot found. Please verify that the file path'C:/Users/Kerstin/AppData/Local/Temp/AMP-2 (1)/Masterarbeit/neutral.jpg' iscorrect.

*Stimuli*
<text target>
/ items = text
/ select = noreplace
/ size = (20%, 20%)
</text>
 ->could not locate item text

<picture mask>
/ items = ("mask.jpg")
/ size = (23%, 23%)
</picture>

1)     ->File not found. Please verify that the file path'C:/Users/Kerstin/AppData/Local/Temp/AMP-2 (1)/Masterarbeit/neutral.jpg' iscorrect.


*tirals*
<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=pleasant; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primea.currentitemnumber; values.targetstim = expressions.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

Expression'expressions.target.currentitemnumber' is invalid. Expression contains anunknown element or property name.

To get an impression of how my skript looks like I copied it. It looks like this:




<item attributeAlabel>
/1 = "Unleasant"
</item>

<item attributeBlabel>
/1 = "Pleasant"
</item>

<item attributeClabel>
/1 = "Unpleasant"
</item>

<item attributeDlabel>
/1 = "Pleasant"
</item>

<item primeAlabel>
/1 = "Pflegeroboter"
</item>

<item primeBlabel>
/1 = "sensorgesteuerte Heizungen"
</item>

<item primeClabel>
/1 = "Smart-Häuser"
</item>

<item primeDlabel>
/1 = "Sterbehilfe"
</item>

<item primeA>
/1 = "Pflegeroboter"
</item>

<item primeB>
/1 = "sensorgesteuerte Heizungen"
</item>

<item primeC>
/1 = "Smart-Häuser"
</item>

<item primeD>
/1 = "Sterbehilfe"
</item>

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>

***********************************************************************
Symbol and neutral stimuli
**************************************************************

<item symbols>
/1 = "pic1.jpg"
/2 = "pic2.jpg"
/3 = "pic3.jpg"
/4 = "pic4.jpg"
/5 = "pic5.jpg"
/6 = "pic6.jpg"
/7 = "pic7.jpg"
/8 = "pic8.jpg"
/9 = "pic9.jpg"
/10 = "pic10.jpg"
/11 = "pic11.jpg"
/12 = "pic12.jpg"
/13 = "pic13.jpg"
/14 = "pic14.jpg"
/15 = "pic15.jpg"
/16 = "pic16.jpg"
/17 = "pic17.jpg"
/18 = "pic18.jpg"
/19 = "pic19.jpg"
/20 = "pic20.jpg"
/21 = "pic21.jpg"
/22 = "pic22.jpg"
/23 = "pic23.jpg"
/24 = "pic24.jpg"
/25 = "pic25.jpg"
/26 = "pic26.jpg"
/27 = "pic27.jpg"
/28 = "pic28.jpg"
/29 = "pic29.jpg"
/30 = "pic30.jpg"
/31 = "pic31.jpg"
/32 = "pic32.jpg"
/33 = "pic33.jpg"
/34 = "pic34.jpg"
/35 = "pic35.jpg"
/36 = "pic36.jpg"
/37 = "pic37.jpg"
/38 = "pic38.jpg"
/39 = "pic39.jpg"
/40 = "pic40.jpg"
/41 = "pic41.jpg"
/42 = "pic42.jpg"
/43 = "pic43.jpg"
/44 = "pic44.jpg"
/45 = "pic45.jpg"
/46 = "pic46.jpg"
/47 = "pic47.jpg"
/48 = "pic48.jpg"
/49 = "pic49.jpg"
/50 = "pic50.jpg"
/51 = "pic51.jpg"
/52 = "pic52.jpg"
/53 = "pic53.jpg"
/54 = "pic54.jpg"
/55 = "pic55.jpg"
/56 = "pic56.jpg"
/57 = "pic57.jpg"
/58 = "pic58.jpg"
/59 = "pic59.jpg"
/60 = "pic60.jpg"
/61 = "pic61.jpg"
/62 = "pic62.jpg"
/63 = "pic63.jpg"
/64 = "pic64.jpg"
/65 = "pic65.jpg"
/66 = "pic66.jpg"
/67 = "pic67.jpg"
/68 = "pic68.jpg"
/69 = "pic69.jpg"
/70 = "pic70.jpg"
/71 = "pic71.jpg"
/72 = "pic72.jpg"
/73 = "pic73.jpg"
/74 = "pic74.jpg"
/75 = "pic75.jpg"
/76 = "pic76.jpg"
/77 = "pic77.jpg"
/78 = "pic78.jpg"
/79 = "pic79.jpg"
/80 = "pic80.jpg"
/81 = "pic81.jpg"
/82 = "pic82.jpg"
/83 = "pic83.jpg"
/84 = "pic84.jpg"
/85 = "pic85.jpg"
/86 = "pic86.jpg"
/87 = "pic87.jpg"
/88 = "pic88.jpg"
/89 = "pic89.jpg"
/90 = "pic90.jpg"
/91 = "pic91.jpg"
/92 = "pic92.jpg"
/93 = "pic93.jpg"
/94 = "pic94.jpg"
/95 = "pic95.jpg"
/96 = "pic96.jpg"
/97 = "pic97.jpg"
/98 = "pic98.jpg"
/99 = "pic99.jpg"
/100 = "pic100.jpg"
/101 = "pic101.jpg"
/102 = "pic102.jpg"
/103 = "pic103.jpg"
/104 = "pic104.jpg"
/105 = "pic105.jpg"
/106 = "pic106.jpg"
/107 = "pic107.jpg"
/108 = "pic108.jpg"
/109 = "pic109.jpg"
/110 = "pic110.jpg"
/111 = "pic111.jpg"
/112 = "pic112.jpg"
/113 = "pic113.jpg"
/114 = "pic114.jpg"
/115 = "pic115.jpg"
/116 = "pic116.jpg"
/117 = "pic117.jpg"
/118 = "pic118.jpg"
/119 = "pic119.jpg"
/120 = "pic120.jpg"
/121 = "pic121.jpg"
/122 = "pic122.jpg"
/123 = "pic123.jpg"
/124 = "pic124.jpg"
/125 = "pic125.jpg"
/126 = "pic126.jpg"
/127 = "pic127.jpg"
/128 = "pic128.jpg"
/129 = "pic129.jpg"
/130 = "pic130.jpg"
/131 = "pic131.jpg"
/132 = "pic132.jpg"
/133 = "pic133.jpg"
/134 = "pic134.jpg"
/135 = "pic135.jpg"
/136 = "pic136.jpg"
/137 = "pic137.jpg"
/138 = "pic138.jpg"
/139 = "pic139.jpg"
/140 = "pic140.jpg"
/141 = "pic141.jpg"
/142 = "pic142.jpg"
/143 = "pic143.jpg"
/144 = "pic144.jpg"
/145 = "pic145.jpg"
/146 = "pic146.jpg"
/147 = "pic147.jpg"
/148 = "pic148.jpg"
/149 = "pic149.jpg"
/150 = "pic150.jpg"
/151 = "pic151.jpg"
/152 = "pic152.jpg"
/153 = "pic153.jpg"
/154 = "pic154.jpg"
/155 = "pic155.jpg"
/156 = "pic156.jpg"
/157 = "pic157.jpg"
/158 = "pic158.jpg"
/159 = "pic159.jpg"
/160 = "pic160.jpg"
/161 = "pic161.jpg"
/162 = "pic162.jpg"
/163 = "pic163.jpg"
/164 = "pic164.jpg"
/165 = "pic165.jpg"
/166 = "pic166.jpg"
/167 = "pic167.jpg"
/168 = "pic168.jpg"
/169 = "pic169.jpg"
/170 = "pic170.jpg"
/171 = "pic171.jpg"
/172 = "pic172.jpg"
/173 = "pic173.jpg"
/174 = "pic174.jpg"
/175 = "pic175.jpg"
/176 = "pic176.jpg"
/177 = "pic177.jpg"
/178 = "pic178.jpg"
/179 = "pic179.jpg"
/180 = "pic180.jpg"
/181 = "pic181.jpg"
/182 = "pic182.jpg"
/183 = "pic183.jpg"
/184 = "pic184.jpg"
/185 = "pic185.jpg"
/186 = "pic186.jpg"
/187 = "pic187.jpg"
/188 = "pic188.jpg"
/189 = "pic189.jpg"
/190 = "pic190.jpg"
/191 = "pic191.jpg"
/192 = "pic192.jpg"
/193 = "pic193.jpg"
/194 = "pic194.jpg"
/195 = "pic195.jpg"
/196 = "pic196.jpg"
/197 = "pic197.jpg"
/198 = "pic198.jpg"
/199 = "pic199.jpg"
/200 = "pic200.jpg"
</item>



**************************************************************************************************************
**************************************************************************************************************
    EDITABLE INSTRUCTIONS: change instructions here
**************************************************************************************************************
**************************************************************

<item instructions>
/ 1 = "This study examines how people make simple judgments.~n~nYou will see pairs of items flashed one after the other. The first is a real life item. The second is a Chinese character. The real-life image simply serves as a warning signal for the Chinese character and should otherwise be ignored. Your job is to judge the visual pleasantness of the Chinese characters."
/ 2 = "If the Chinese character is less visually pleasing than average, press the left (E) <%expressions.buttoninstruct1%>. If the Chinese character is more visually pleasing than average, press the right (I) <%expressions.buttoninstruct1%>.

It is important to note that the real-life item can sometimes bias people’s judgments of the drawings. Because we are interested in how people can avoid being biased, please try your absolute best not to let the real-life items bias your judgment of the drawings! Give us an honest assessment of the drawings, regardless of the images that precede them."
/ 3 = "To get a feel for the task, we will begin with 10 practice trials. Again, your task is to judge whether the Chinese characters are less visually pleasing or more visual pleasing than average by pressing either the 'E' or 'I' <%expressions.buttoninstruct1%>."
/ 4 = "Practice is now complete and the task will now begin. As a reminder, if the Chinese character is less visually pleasing than average, press the left 'E' <%expressions.buttoninstruct1%>. If it is more visual pleasing than average, press the right 'I' <%expressions.buttoninstruct1%>."
</item>


<text summary>
/ items = ("You judged <% (trial.primeA.percentcorrect) %> % of the Chinese characters to be <% item.attributeAlabel.item.1 %> when they were preceded by a <% item.primeAlabel.item.1 %> picture.

You judged <% (100 - trial.primeB.percentcorrect) %> % of the Chinese characters to be <% item.attributeAlabel.item.1 %> when they were preceded by a <% item.primeBlabel.item.1 %> picture.")
/ size = (60%, 60%)
/ hjustify = left
 </text>

 
 ****************************************************************************************************
general instruction expressions: adjust the instruction text depending on device used to run script
****************************************************************************************************

<expressions>
/buttoninstruct1 = if (computer.touch) {"button";} else {"key";}
/buttoninstruct2 = if (computer.touch) {"Place your index fingers over the left and right response buttons";} else {"Place your index finger on the E and I keys";}
</expressions>

*******************************
General Helper Instructions
******************************

<text getReady>
/items = ("Get Ready:
~n<%expressions.buttoninstruct2%>")
/ fontstyle = ("Arial", 3.00%, false, false, false, false, 5, 1)
/ size = (80%, 40%)
</text>

***********************************************************
these instructions will be run if the script is
run on a touchscreen
***********************************************************

<text touchscreenInstruct1>
/ items = ("General Note on Touchscreen Usage
 for this Task:")
/ fontstyle = ("Arial", 5%, true, false, false, false, 5, 1)
/ position = (50%, 20%)
/ size = (80%, 20%)
/ vjustify = center
</text>

<text touchscreenInstruct2>
/ items = ("All necessary response buttons/keys will be provided at the bottom of your screen.

For example, here you see the <SPACEBAR>.
Tap it to continue to read instructions.")
/ fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
/ position = (50%, 50%)
/ size = (70%, 30%)
/ vjustify = center
</text>

**************************************************************************************************************
                                !!!REMAINING CODE: Customize after careful consideration only!!!
**************************************************************************************************************


**************************************************************************************************************
**************************************************************************************************************
    DEFAULTS
**************************************************************************************************************
**************************************************************************************************************
script requires Inquisit 5.0.0.0 or higher


<defaults>
/canvasaspectratio = (4,3)
/minimumversion = "5.0.0.0"
/ fontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ screencolor = black
/ txbgcolor = black
/ txcolor = white
</defaults>

**************************************************************************************************************
**************************************************************************************************************
    DATA
**************************************************************************************************************
**************************************************************************************************************

******************
Raw Data Files
******************

<data>
/columns = (build, computer.platform, date, time, subject, blockcode, blocknum, trialcode, trialnum, values.primestim, values.targetstim,
                response, correct, latency,
                trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect)
/separatefiles = true
</data>

*******************
Summary Data File
*******************

<summarydata>
/columns = (script.filename, script.startdate, script.starttime, script.subjectid, script.elapsedtime, computer.platform, values.completed,
trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect)
/ separatefiles = true
</summarydata>

**************************************************************************************************************
**************************************************************************************************************
    VALUES: automatically updated
**************************************************************************************************************
**************************************************************************************************************

completed:                                    0 = script was not completed; 1 = script was completed (all conditions run)
/targetstim:                                stores the itemnumber of the current target stimulus
/primestim:                                    stores the itemnumber of the current prime stimulus

<values>
/completed = 0
/targetstim = 0
/primestim = 0
</values>

**************************************************************************************************************
**************************************************************************************************************
    EXPRESSIONS
**************************************************************************************************************
**************************************************************************************************************
expressions>
/ a = trial.primeA.percentcorrect
/ b = trial.primeB.percentcorrect
</expressions>

**************************************************************************************************************
**************************************************************************************************************
    INSTRUCTIONS
**************************************************************************************************************
**************************************************************************************************************

list instructions>
/ items = (1, 2, 3, 4, 5, 6, 7)
/ resetinterval = 20
/ selectionmode = sequence
</list>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 85%)
/ valign = bottom
/ select = sequence
</text>

<text spacebar>
/ items = ("Press the SPACE BAR to begin.")
/ position = (50%, 95%)
/ valign = bottom
</text>

<trial instructions>
/ stimulustimes = [1=instructions, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

*****************************
General Helper Trial
*****************************

This trial is used when participants are asked to place their fingers on specific response
buttons. On the touchscreen, this trial presents the (inactive) response buttons to the participants.
<trial getReady>
/ stimulusframes = [1 = getReady]
/ trialduration = 5000
/ validresponse = (18, 23)
/ beginresponsetime = 5000
/ errormessage = false
/ recorddata = false
</trial>

<trial touchscreenInstruct>
/ skip = [
    !computer.touch
]
/ stimulusframes = [1 = touchscreenInstruct1, touchscreenInstruct2]
/ validresponse = (57)
/ recorddata = false
</trial>

**************************************************************************************************************
**************************************************************************************************************
    PERFORMANCE SUMMARY
**************************************************************************************************************
**************************************************************************************************************
<trial summary>
/ stimulustimes = [0=summary]
/ validresponse = (" ")
/ recorddata = false
</trial>

**************************************************************************************************************
**************************************************************************************************************
    STIMULI
**************************************************************************************************************
**************************************************************************************************************
<text target>
/ items = text
/ select = noreplace
/ size = (20%, 20%)
</text>


<text primeB>
/ items = primeB
/ size = (20%, 20%)
</text>

<text primeA>
/ items = primeA
/ size = (20%, 20%)
</text>

<text primeD>
/ items = primeD
/ size = (20%, 20%)
</text>

<text primeC>
/ items = primeC
/ size = (20%, 20%)
</text>

<text attributeAlabel>
/ items = attributeAlabel
/ valign = top
/ halign = right
/ position = (95%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeBlabel>
/ items = attributeBlabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeClabel>
/ items = attributeClabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeDlabel>
/ items = attributeDlabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text error>
/ position = (50%, 75%)
/ items = ("X")
/ color = red
/ fontstyle = ("Arial", 10%, true)
</text>

<picture mask>
/ items = ("mask.jpg")
/ size = (23%, 23%)
</picture>

<shape blank>
/ shape = rectangle
/ color = black
/ size = (20%, 20%)
</shape>


**************************************************************************************************************
**************************************************************************************************************
    TRIALS    
**************************************************************************************************************
**************************************************************************************************************
<trial primeApractice>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>


<trial primeBpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeCpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeC; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeDpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeD; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeNeutralpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=pleasant; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primea.currentitemnumber; values.targetstim = expressions.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

**************************************************************************************************************
**************************************************************************************************************
    BLOCKS
**************************************************************************************************************
**************************************************************************************************************
<block touchscreenInfo>
/ trials = [1 = touchscreenInstruct]
</block>


<block practice>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1-3 = instructions; 4 = getReady; 5-14 = noreplace(primeApractice, primeBpractice, primeNeutralpractice)]
/ recorddata = true
</block>


<block test>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1 = instructions; 2 = getReady; 3-50 = noreplace(primeA, primeB, primeNeutral)]
</block>


<block summary>
/ trials = [1=summary]
/ recorddata = false
</block>

**************************************************************************************************************
**************************************************************************************************************
    EXPERIMENT
**************************************************************************************************************
**************************************************************************************************************
<expt>
/ blocks = [
    1 = touchscreenInfo;
    2=practice;
    3=test;
    4=summary;
]
/onexptend = [values.completed = 1]
</expt>

***********************************************************************
Test Monkey
***********************************************************************
<monkey>
/ latencydistribution = normal(500, 100)
/ percentcorrect = 90
</monkey>


**************************************************************************************************************
                                                End of File
**************************************************************************************************************

Thank you very much in adavance!

Kerstin

The file not found errors are due to the fact that you are trying to run the script from the computer's temporary directory. Download the AMP file and store it in a *suitable* location on your computer, such as your Desktop or "My Files" folder.

For any image files you want to use, those need to reside in the same location.

The expression

/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]

is invalid because you do not have a <picture> element called "target" anymore. You have a <text> element, i.e. the thing needs to read



/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = text.target.currentitemnumber]

Dear Dave,

thank you very much for your quick answer.
I have changed the steps you recommanded but unfortunately the skript still doesn't work.

<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

The file can still not be found: Please verify that the file path 'C:/Users/Kerstin/Desktop/neutral.jpg' is correct. What is wrong with that file?

<text target>
/ items = text -> the word "text" seems to be wrong. What do I have to use here? The message says that the item "text" cannot be located?
/ select = noreplace
/ size = (20%, 20%)
</text>

<trial primeNeutral>  
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>
-> Expression 'picture.target.currentitemnumber' is invalid. Expression contains an unknown element or property name.

Please tell me what I still do wrong. I have never worked with this program before and because I just copied most of the elements of the skript like the <trial primeNeutral> above, I have no idea what the program wants me to do.

Thank you very much again for your help.

Kerstin


There is a <picture> element called primeNeutral.

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>

That picture element references a file called "neutral.jpg". The error message tells you that this file is not where it is supposed to be.

As for the other error message, see my previous reply:

/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]

There is *no* <picture target> anymore. You've changed it to a <text> element.

values.targetstim = picture.target.currentitemnumber

needs to read

values.targetstim = text.target.currentitemnumber]

Kerstin
Kerstin
Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)
Group: Forum Members
Posts: 23, Visits: 29
Dave - Thursday, March 2, 2017
Kerstin - Thursday, March 2, 2017
Dave - Thursday, March 2, 2017
Kerstin - Thursday, March 2, 2017
Hello,

i am using the AMP for creating an experiment for my masterarbeit.
Unfortunately I have a few problems with my script, so that every time I try to run the experiment I always get error messages.
I want to use 4 text items in my experiment and no pictures. So I listed and named the 4 items and copied every other detail from an example but also some of these elements don't work in my skript.
To make long things short I will list the error messages and hope you can help me.

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>
-> Filenot found. Please verify that the file path'C:/Users/Kerstin/AppData/Local/Temp/AMP-2 (1)/Masterarbeit/neutral.jpg' iscorrect.

*Stimuli*
<text target>
/ items = text
/ select = noreplace
/ size = (20%, 20%)
</text>
 ->could not locate item text

<picture mask>
/ items = ("mask.jpg")
/ size = (23%, 23%)
</picture>

1)     ->File not found. Please verify that the file path'C:/Users/Kerstin/AppData/Local/Temp/AMP-2 (1)/Masterarbeit/neutral.jpg' iscorrect.


*tirals*
<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=pleasant; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primea.currentitemnumber; values.targetstim = expressions.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

Expression'expressions.target.currentitemnumber' is invalid. Expression contains anunknown element or property name.

To get an impression of how my skript looks like I copied it. It looks like this:




<item attributeAlabel>
/1 = "Unleasant"
</item>

<item attributeBlabel>
/1 = "Pleasant"
</item>

<item attributeClabel>
/1 = "Unpleasant"
</item>

<item attributeDlabel>
/1 = "Pleasant"
</item>

<item primeAlabel>
/1 = "Pflegeroboter"
</item>

<item primeBlabel>
/1 = "sensorgesteuerte Heizungen"
</item>

<item primeClabel>
/1 = "Smart-Häuser"
</item>

<item primeDlabel>
/1 = "Sterbehilfe"
</item>

<item primeA>
/1 = "Pflegeroboter"
</item>

<item primeB>
/1 = "sensorgesteuerte Heizungen"
</item>

<item primeC>
/1 = "Smart-Häuser"
</item>

<item primeD>
/1 = "Sterbehilfe"
</item>

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>

***********************************************************************
Symbol and neutral stimuli
**************************************************************

<item symbols>
/1 = "pic1.jpg"
/2 = "pic2.jpg"
/3 = "pic3.jpg"
/4 = "pic4.jpg"
/5 = "pic5.jpg"
/6 = "pic6.jpg"
/7 = "pic7.jpg"
/8 = "pic8.jpg"
/9 = "pic9.jpg"
/10 = "pic10.jpg"
/11 = "pic11.jpg"
/12 = "pic12.jpg"
/13 = "pic13.jpg"
/14 = "pic14.jpg"
/15 = "pic15.jpg"
/16 = "pic16.jpg"
/17 = "pic17.jpg"
/18 = "pic18.jpg"
/19 = "pic19.jpg"
/20 = "pic20.jpg"
/21 = "pic21.jpg"
/22 = "pic22.jpg"
/23 = "pic23.jpg"
/24 = "pic24.jpg"
/25 = "pic25.jpg"
/26 = "pic26.jpg"
/27 = "pic27.jpg"
/28 = "pic28.jpg"
/29 = "pic29.jpg"
/30 = "pic30.jpg"
/31 = "pic31.jpg"
/32 = "pic32.jpg"
/33 = "pic33.jpg"
/34 = "pic34.jpg"
/35 = "pic35.jpg"
/36 = "pic36.jpg"
/37 = "pic37.jpg"
/38 = "pic38.jpg"
/39 = "pic39.jpg"
/40 = "pic40.jpg"
/41 = "pic41.jpg"
/42 = "pic42.jpg"
/43 = "pic43.jpg"
/44 = "pic44.jpg"
/45 = "pic45.jpg"
/46 = "pic46.jpg"
/47 = "pic47.jpg"
/48 = "pic48.jpg"
/49 = "pic49.jpg"
/50 = "pic50.jpg"
/51 = "pic51.jpg"
/52 = "pic52.jpg"
/53 = "pic53.jpg"
/54 = "pic54.jpg"
/55 = "pic55.jpg"
/56 = "pic56.jpg"
/57 = "pic57.jpg"
/58 = "pic58.jpg"
/59 = "pic59.jpg"
/60 = "pic60.jpg"
/61 = "pic61.jpg"
/62 = "pic62.jpg"
/63 = "pic63.jpg"
/64 = "pic64.jpg"
/65 = "pic65.jpg"
/66 = "pic66.jpg"
/67 = "pic67.jpg"
/68 = "pic68.jpg"
/69 = "pic69.jpg"
/70 = "pic70.jpg"
/71 = "pic71.jpg"
/72 = "pic72.jpg"
/73 = "pic73.jpg"
/74 = "pic74.jpg"
/75 = "pic75.jpg"
/76 = "pic76.jpg"
/77 = "pic77.jpg"
/78 = "pic78.jpg"
/79 = "pic79.jpg"
/80 = "pic80.jpg"
/81 = "pic81.jpg"
/82 = "pic82.jpg"
/83 = "pic83.jpg"
/84 = "pic84.jpg"
/85 = "pic85.jpg"
/86 = "pic86.jpg"
/87 = "pic87.jpg"
/88 = "pic88.jpg"
/89 = "pic89.jpg"
/90 = "pic90.jpg"
/91 = "pic91.jpg"
/92 = "pic92.jpg"
/93 = "pic93.jpg"
/94 = "pic94.jpg"
/95 = "pic95.jpg"
/96 = "pic96.jpg"
/97 = "pic97.jpg"
/98 = "pic98.jpg"
/99 = "pic99.jpg"
/100 = "pic100.jpg"
/101 = "pic101.jpg"
/102 = "pic102.jpg"
/103 = "pic103.jpg"
/104 = "pic104.jpg"
/105 = "pic105.jpg"
/106 = "pic106.jpg"
/107 = "pic107.jpg"
/108 = "pic108.jpg"
/109 = "pic109.jpg"
/110 = "pic110.jpg"
/111 = "pic111.jpg"
/112 = "pic112.jpg"
/113 = "pic113.jpg"
/114 = "pic114.jpg"
/115 = "pic115.jpg"
/116 = "pic116.jpg"
/117 = "pic117.jpg"
/118 = "pic118.jpg"
/119 = "pic119.jpg"
/120 = "pic120.jpg"
/121 = "pic121.jpg"
/122 = "pic122.jpg"
/123 = "pic123.jpg"
/124 = "pic124.jpg"
/125 = "pic125.jpg"
/126 = "pic126.jpg"
/127 = "pic127.jpg"
/128 = "pic128.jpg"
/129 = "pic129.jpg"
/130 = "pic130.jpg"
/131 = "pic131.jpg"
/132 = "pic132.jpg"
/133 = "pic133.jpg"
/134 = "pic134.jpg"
/135 = "pic135.jpg"
/136 = "pic136.jpg"
/137 = "pic137.jpg"
/138 = "pic138.jpg"
/139 = "pic139.jpg"
/140 = "pic140.jpg"
/141 = "pic141.jpg"
/142 = "pic142.jpg"
/143 = "pic143.jpg"
/144 = "pic144.jpg"
/145 = "pic145.jpg"
/146 = "pic146.jpg"
/147 = "pic147.jpg"
/148 = "pic148.jpg"
/149 = "pic149.jpg"
/150 = "pic150.jpg"
/151 = "pic151.jpg"
/152 = "pic152.jpg"
/153 = "pic153.jpg"
/154 = "pic154.jpg"
/155 = "pic155.jpg"
/156 = "pic156.jpg"
/157 = "pic157.jpg"
/158 = "pic158.jpg"
/159 = "pic159.jpg"
/160 = "pic160.jpg"
/161 = "pic161.jpg"
/162 = "pic162.jpg"
/163 = "pic163.jpg"
/164 = "pic164.jpg"
/165 = "pic165.jpg"
/166 = "pic166.jpg"
/167 = "pic167.jpg"
/168 = "pic168.jpg"
/169 = "pic169.jpg"
/170 = "pic170.jpg"
/171 = "pic171.jpg"
/172 = "pic172.jpg"
/173 = "pic173.jpg"
/174 = "pic174.jpg"
/175 = "pic175.jpg"
/176 = "pic176.jpg"
/177 = "pic177.jpg"
/178 = "pic178.jpg"
/179 = "pic179.jpg"
/180 = "pic180.jpg"
/181 = "pic181.jpg"
/182 = "pic182.jpg"
/183 = "pic183.jpg"
/184 = "pic184.jpg"
/185 = "pic185.jpg"
/186 = "pic186.jpg"
/187 = "pic187.jpg"
/188 = "pic188.jpg"
/189 = "pic189.jpg"
/190 = "pic190.jpg"
/191 = "pic191.jpg"
/192 = "pic192.jpg"
/193 = "pic193.jpg"
/194 = "pic194.jpg"
/195 = "pic195.jpg"
/196 = "pic196.jpg"
/197 = "pic197.jpg"
/198 = "pic198.jpg"
/199 = "pic199.jpg"
/200 = "pic200.jpg"
</item>



**************************************************************************************************************
**************************************************************************************************************
    EDITABLE INSTRUCTIONS: change instructions here
**************************************************************************************************************
**************************************************************

<item instructions>
/ 1 = "This study examines how people make simple judgments.~n~nYou will see pairs of items flashed one after the other. The first is a real life item. The second is a Chinese character. The real-life image simply serves as a warning signal for the Chinese character and should otherwise be ignored. Your job is to judge the visual pleasantness of the Chinese characters."
/ 2 = "If the Chinese character is less visually pleasing than average, press the left (E) <%expressions.buttoninstruct1%>. If the Chinese character is more visually pleasing than average, press the right (I) <%expressions.buttoninstruct1%>.

It is important to note that the real-life item can sometimes bias people’s judgments of the drawings. Because we are interested in how people can avoid being biased, please try your absolute best not to let the real-life items bias your judgment of the drawings! Give us an honest assessment of the drawings, regardless of the images that precede them."
/ 3 = "To get a feel for the task, we will begin with 10 practice trials. Again, your task is to judge whether the Chinese characters are less visually pleasing or more visual pleasing than average by pressing either the 'E' or 'I' <%expressions.buttoninstruct1%>."
/ 4 = "Practice is now complete and the task will now begin. As a reminder, if the Chinese character is less visually pleasing than average, press the left 'E' <%expressions.buttoninstruct1%>. If it is more visual pleasing than average, press the right 'I' <%expressions.buttoninstruct1%>."
</item>


<text summary>
/ items = ("You judged <% (trial.primeA.percentcorrect) %> % of the Chinese characters to be <% item.attributeAlabel.item.1 %> when they were preceded by a <% item.primeAlabel.item.1 %> picture.

You judged <% (100 - trial.primeB.percentcorrect) %> % of the Chinese characters to be <% item.attributeAlabel.item.1 %> when they were preceded by a <% item.primeBlabel.item.1 %> picture.")
/ size = (60%, 60%)
/ hjustify = left
 </text>

 
 ****************************************************************************************************
general instruction expressions: adjust the instruction text depending on device used to run script
****************************************************************************************************

<expressions>
/buttoninstruct1 = if (computer.touch) {"button";} else {"key";}
/buttoninstruct2 = if (computer.touch) {"Place your index fingers over the left and right response buttons";} else {"Place your index finger on the E and I keys";}
</expressions>

*******************************
General Helper Instructions
******************************

<text getReady>
/items = ("Get Ready:
~n<%expressions.buttoninstruct2%>")
/ fontstyle = ("Arial", 3.00%, false, false, false, false, 5, 1)
/ size = (80%, 40%)
</text>

***********************************************************
these instructions will be run if the script is
run on a touchscreen
***********************************************************

<text touchscreenInstruct1>
/ items = ("General Note on Touchscreen Usage
 for this Task:")
/ fontstyle = ("Arial", 5%, true, false, false, false, 5, 1)
/ position = (50%, 20%)
/ size = (80%, 20%)
/ vjustify = center
</text>

<text touchscreenInstruct2>
/ items = ("All necessary response buttons/keys will be provided at the bottom of your screen.

For example, here you see the <SPACEBAR>.
Tap it to continue to read instructions.")
/ fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
/ position = (50%, 50%)
/ size = (70%, 30%)
/ vjustify = center
</text>

**************************************************************************************************************
                                !!!REMAINING CODE: Customize after careful consideration only!!!
**************************************************************************************************************


**************************************************************************************************************
**************************************************************************************************************
    DEFAULTS
**************************************************************************************************************
**************************************************************************************************************
script requires Inquisit 5.0.0.0 or higher


<defaults>
/canvasaspectratio = (4,3)
/minimumversion = "5.0.0.0"
/ fontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ screencolor = black
/ txbgcolor = black
/ txcolor = white
</defaults>

**************************************************************************************************************
**************************************************************************************************************
    DATA
**************************************************************************************************************
**************************************************************************************************************

******************
Raw Data Files
******************

<data>
/columns = (build, computer.platform, date, time, subject, blockcode, blocknum, trialcode, trialnum, values.primestim, values.targetstim,
                response, correct, latency,
                trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect)
/separatefiles = true
</data>

*******************
Summary Data File
*******************

<summarydata>
/columns = (script.filename, script.startdate, script.starttime, script.subjectid, script.elapsedtime, computer.platform, values.completed,
trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect)
/ separatefiles = true
</summarydata>

**************************************************************************************************************
**************************************************************************************************************
    VALUES: automatically updated
**************************************************************************************************************
**************************************************************************************************************

completed:                                    0 = script was not completed; 1 = script was completed (all conditions run)
/targetstim:                                stores the itemnumber of the current target stimulus
/primestim:                                    stores the itemnumber of the current prime stimulus

<values>
/completed = 0
/targetstim = 0
/primestim = 0
</values>

**************************************************************************************************************
**************************************************************************************************************
    EXPRESSIONS
**************************************************************************************************************
**************************************************************************************************************
expressions>
/ a = trial.primeA.percentcorrect
/ b = trial.primeB.percentcorrect
</expressions>

**************************************************************************************************************
**************************************************************************************************************
    INSTRUCTIONS
**************************************************************************************************************
**************************************************************************************************************

list instructions>
/ items = (1, 2, 3, 4, 5, 6, 7)
/ resetinterval = 20
/ selectionmode = sequence
</list>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 85%)
/ valign = bottom
/ select = sequence
</text>

<text spacebar>
/ items = ("Press the SPACE BAR to begin.")
/ position = (50%, 95%)
/ valign = bottom
</text>

<trial instructions>
/ stimulustimes = [1=instructions, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

*****************************
General Helper Trial
*****************************

This trial is used when participants are asked to place their fingers on specific response
buttons. On the touchscreen, this trial presents the (inactive) response buttons to the participants.
<trial getReady>
/ stimulusframes = [1 = getReady]
/ trialduration = 5000
/ validresponse = (18, 23)
/ beginresponsetime = 5000
/ errormessage = false
/ recorddata = false
</trial>

<trial touchscreenInstruct>
/ skip = [
    !computer.touch
]
/ stimulusframes = [1 = touchscreenInstruct1, touchscreenInstruct2]
/ validresponse = (57)
/ recorddata = false
</trial>

**************************************************************************************************************
**************************************************************************************************************
    PERFORMANCE SUMMARY
**************************************************************************************************************
**************************************************************************************************************
<trial summary>
/ stimulustimes = [0=summary]
/ validresponse = (" ")
/ recorddata = false
</trial>

**************************************************************************************************************
**************************************************************************************************************
    STIMULI
**************************************************************************************************************
**************************************************************************************************************
<text target>
/ items = text
/ select = noreplace
/ size = (20%, 20%)
</text>


<text primeB>
/ items = primeB
/ size = (20%, 20%)
</text>

<text primeA>
/ items = primeA
/ size = (20%, 20%)
</text>

<text primeD>
/ items = primeD
/ size = (20%, 20%)
</text>

<text primeC>
/ items = primeC
/ size = (20%, 20%)
</text>

<text attributeAlabel>
/ items = attributeAlabel
/ valign = top
/ halign = right
/ position = (95%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeBlabel>
/ items = attributeBlabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeClabel>
/ items = attributeClabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeDlabel>
/ items = attributeDlabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text error>
/ position = (50%, 75%)
/ items = ("X")
/ color = red
/ fontstyle = ("Arial", 10%, true)
</text>

<picture mask>
/ items = ("mask.jpg")
/ size = (23%, 23%)
</picture>

<shape blank>
/ shape = rectangle
/ color = black
/ size = (20%, 20%)
</shape>


**************************************************************************************************************
**************************************************************************************************************
    TRIALS    
**************************************************************************************************************
**************************************************************************************************************
<trial primeApractice>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>


<trial primeBpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeCpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeC; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeDpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeD; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeNeutralpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=pleasant; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primea.currentitemnumber; values.targetstim = expressions.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

**************************************************************************************************************
**************************************************************************************************************
    BLOCKS
**************************************************************************************************************
**************************************************************************************************************
<block touchscreenInfo>
/ trials = [1 = touchscreenInstruct]
</block>


<block practice>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1-3 = instructions; 4 = getReady; 5-14 = noreplace(primeApractice, primeBpractice, primeNeutralpractice)]
/ recorddata = true
</block>


<block test>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1 = instructions; 2 = getReady; 3-50 = noreplace(primeA, primeB, primeNeutral)]
</block>


<block summary>
/ trials = [1=summary]
/ recorddata = false
</block>

**************************************************************************************************************
**************************************************************************************************************
    EXPERIMENT
**************************************************************************************************************
**************************************************************************************************************
<expt>
/ blocks = [
    1 = touchscreenInfo;
    2=practice;
    3=test;
    4=summary;
]
/onexptend = [values.completed = 1]
</expt>

***********************************************************************
Test Monkey
***********************************************************************
<monkey>
/ latencydistribution = normal(500, 100)
/ percentcorrect = 90
</monkey>


**************************************************************************************************************
                                                End of File
**************************************************************************************************************

Thank you very much in adavance!

Kerstin

The file not found errors are due to the fact that you are trying to run the script from the computer's temporary directory. Download the AMP file and store it in a *suitable* location on your computer, such as your Desktop or "My Files" folder.

For any image files you want to use, those need to reside in the same location.

The expression

/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]

is invalid because you do not have a <picture> element called "target" anymore. You have a <text> element, i.e. the thing needs to read



/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = text.target.currentitemnumber]

Dear Dave,

thank you very much for your quick answer.
I have changed the steps you recommanded but unfortunately the skript still doesn't work.

<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

The file can still not be found: Please verify that the file path 'C:/Users/Kerstin/Desktop/neutral.jpg' is correct. What is wrong with that file?

<text target>
/ items = text -> the word "text" seems to be wrong. What do I have to use here? The message says that the item "text" cannot be located?
/ select = noreplace
/ size = (20%, 20%)
</text>

<trial primeNeutral>  
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>
-> Expression 'picture.target.currentitemnumber' is invalid. Expression contains an unknown element or property name.

Please tell me what I still do wrong. I have never worked with this program before and because I just copied most of the elements of the skript like the <trial primeNeutral> above, I have no idea what the program wants me to do.

Thank you very much again for your help.

Kerstin


There is a <picture> element called primeNeutral.

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>

That picture element references a file called "neutral.jpg". The error message tells you that this file is not where it is supposed to be.

As for the other error message, see my previous reply:

/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]

There is *no* <picture target> anymore. You've changed it to a <text> element.

values.targetstim = picture.target.currentitemnumber

needs to read

values.targetstim = text.target.currentitemnumber]



Kerstin
Kerstin
Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)
Group: Forum Members
Posts: 23, Visits: 29
Kerstin - Thursday, March 2, 2017
Dave - Thursday, March 2, 2017
Kerstin - Thursday, March 2, 2017
Dave - Thursday, March 2, 2017
Kerstin - Thursday, March 2, 2017
Hello,

i am using the AMP for creating an experiment for my masterarbeit.
Unfortunately I have a few problems with my script, so that every time I try to run the experiment I always get error messages.
I want to use 4 text items in my experiment and no pictures. So I listed and named the 4 items and copied every other detail from an example but also some of these elements don't work in my skript.
To make long things short I will list the error messages and hope you can help me.

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>
-> Filenot found. Please verify that the file path'C:/Users/Kerstin/AppData/Local/Temp/AMP-2 (1)/Masterarbeit/neutral.jpg' iscorrect.

*Stimuli*
<text target>
/ items = text
/ select = noreplace
/ size = (20%, 20%)
</text>
 ->could not locate item text

<picture mask>
/ items = ("mask.jpg")
/ size = (23%, 23%)
</picture>

1)     ->File not found. Please verify that the file path'C:/Users/Kerstin/AppData/Local/Temp/AMP-2 (1)/Masterarbeit/neutral.jpg' iscorrect.


*tirals*
<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=pleasant; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primea.currentitemnumber; values.targetstim = expressions.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

Expression'expressions.target.currentitemnumber' is invalid. Expression contains anunknown element or property name.

To get an impression of how my skript looks like I copied it. It looks like this:




<item attributeAlabel>
/1 = "Unleasant"
</item>

<item attributeBlabel>
/1 = "Pleasant"
</item>

<item attributeClabel>
/1 = "Unpleasant"
</item>

<item attributeDlabel>
/1 = "Pleasant"
</item>

<item primeAlabel>
/1 = "Pflegeroboter"
</item>

<item primeBlabel>
/1 = "sensorgesteuerte Heizungen"
</item>

<item primeClabel>
/1 = "Smart-Häuser"
</item>

<item primeDlabel>
/1 = "Sterbehilfe"
</item>

<item primeA>
/1 = "Pflegeroboter"
</item>

<item primeB>
/1 = "sensorgesteuerte Heizungen"
</item>

<item primeC>
/1 = "Smart-Häuser"
</item>

<item primeD>
/1 = "Sterbehilfe"
</item>

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>

***********************************************************************
Symbol and neutral stimuli
**************************************************************

<item symbols>
/1 = "pic1.jpg"
/2 = "pic2.jpg"
/3 = "pic3.jpg"
/4 = "pic4.jpg"
/5 = "pic5.jpg"
/6 = "pic6.jpg"
/7 = "pic7.jpg"
/8 = "pic8.jpg"
/9 = "pic9.jpg"
/10 = "pic10.jpg"
/11 = "pic11.jpg"
/12 = "pic12.jpg"
/13 = "pic13.jpg"
/14 = "pic14.jpg"
/15 = "pic15.jpg"
/16 = "pic16.jpg"
/17 = "pic17.jpg"
/18 = "pic18.jpg"
/19 = "pic19.jpg"
/20 = "pic20.jpg"
/21 = "pic21.jpg"
/22 = "pic22.jpg"
/23 = "pic23.jpg"
/24 = "pic24.jpg"
/25 = "pic25.jpg"
/26 = "pic26.jpg"
/27 = "pic27.jpg"
/28 = "pic28.jpg"
/29 = "pic29.jpg"
/30 = "pic30.jpg"
/31 = "pic31.jpg"
/32 = "pic32.jpg"
/33 = "pic33.jpg"
/34 = "pic34.jpg"
/35 = "pic35.jpg"
/36 = "pic36.jpg"
/37 = "pic37.jpg"
/38 = "pic38.jpg"
/39 = "pic39.jpg"
/40 = "pic40.jpg"
/41 = "pic41.jpg"
/42 = "pic42.jpg"
/43 = "pic43.jpg"
/44 = "pic44.jpg"
/45 = "pic45.jpg"
/46 = "pic46.jpg"
/47 = "pic47.jpg"
/48 = "pic48.jpg"
/49 = "pic49.jpg"
/50 = "pic50.jpg"
/51 = "pic51.jpg"
/52 = "pic52.jpg"
/53 = "pic53.jpg"
/54 = "pic54.jpg"
/55 = "pic55.jpg"
/56 = "pic56.jpg"
/57 = "pic57.jpg"
/58 = "pic58.jpg"
/59 = "pic59.jpg"
/60 = "pic60.jpg"
/61 = "pic61.jpg"
/62 = "pic62.jpg"
/63 = "pic63.jpg"
/64 = "pic64.jpg"
/65 = "pic65.jpg"
/66 = "pic66.jpg"
/67 = "pic67.jpg"
/68 = "pic68.jpg"
/69 = "pic69.jpg"
/70 = "pic70.jpg"
/71 = "pic71.jpg"
/72 = "pic72.jpg"
/73 = "pic73.jpg"
/74 = "pic74.jpg"
/75 = "pic75.jpg"
/76 = "pic76.jpg"
/77 = "pic77.jpg"
/78 = "pic78.jpg"
/79 = "pic79.jpg"
/80 = "pic80.jpg"
/81 = "pic81.jpg"
/82 = "pic82.jpg"
/83 = "pic83.jpg"
/84 = "pic84.jpg"
/85 = "pic85.jpg"
/86 = "pic86.jpg"
/87 = "pic87.jpg"
/88 = "pic88.jpg"
/89 = "pic89.jpg"
/90 = "pic90.jpg"
/91 = "pic91.jpg"
/92 = "pic92.jpg"
/93 = "pic93.jpg"
/94 = "pic94.jpg"
/95 = "pic95.jpg"
/96 = "pic96.jpg"
/97 = "pic97.jpg"
/98 = "pic98.jpg"
/99 = "pic99.jpg"
/100 = "pic100.jpg"
/101 = "pic101.jpg"
/102 = "pic102.jpg"
/103 = "pic103.jpg"
/104 = "pic104.jpg"
/105 = "pic105.jpg"
/106 = "pic106.jpg"
/107 = "pic107.jpg"
/108 = "pic108.jpg"
/109 = "pic109.jpg"
/110 = "pic110.jpg"
/111 = "pic111.jpg"
/112 = "pic112.jpg"
/113 = "pic113.jpg"
/114 = "pic114.jpg"
/115 = "pic115.jpg"
/116 = "pic116.jpg"
/117 = "pic117.jpg"
/118 = "pic118.jpg"
/119 = "pic119.jpg"
/120 = "pic120.jpg"
/121 = "pic121.jpg"
/122 = "pic122.jpg"
/123 = "pic123.jpg"
/124 = "pic124.jpg"
/125 = "pic125.jpg"
/126 = "pic126.jpg"
/127 = "pic127.jpg"
/128 = "pic128.jpg"
/129 = "pic129.jpg"
/130 = "pic130.jpg"
/131 = "pic131.jpg"
/132 = "pic132.jpg"
/133 = "pic133.jpg"
/134 = "pic134.jpg"
/135 = "pic135.jpg"
/136 = "pic136.jpg"
/137 = "pic137.jpg"
/138 = "pic138.jpg"
/139 = "pic139.jpg"
/140 = "pic140.jpg"
/141 = "pic141.jpg"
/142 = "pic142.jpg"
/143 = "pic143.jpg"
/144 = "pic144.jpg"
/145 = "pic145.jpg"
/146 = "pic146.jpg"
/147 = "pic147.jpg"
/148 = "pic148.jpg"
/149 = "pic149.jpg"
/150 = "pic150.jpg"
/151 = "pic151.jpg"
/152 = "pic152.jpg"
/153 = "pic153.jpg"
/154 = "pic154.jpg"
/155 = "pic155.jpg"
/156 = "pic156.jpg"
/157 = "pic157.jpg"
/158 = "pic158.jpg"
/159 = "pic159.jpg"
/160 = "pic160.jpg"
/161 = "pic161.jpg"
/162 = "pic162.jpg"
/163 = "pic163.jpg"
/164 = "pic164.jpg"
/165 = "pic165.jpg"
/166 = "pic166.jpg"
/167 = "pic167.jpg"
/168 = "pic168.jpg"
/169 = "pic169.jpg"
/170 = "pic170.jpg"
/171 = "pic171.jpg"
/172 = "pic172.jpg"
/173 = "pic173.jpg"
/174 = "pic174.jpg"
/175 = "pic175.jpg"
/176 = "pic176.jpg"
/177 = "pic177.jpg"
/178 = "pic178.jpg"
/179 = "pic179.jpg"
/180 = "pic180.jpg"
/181 = "pic181.jpg"
/182 = "pic182.jpg"
/183 = "pic183.jpg"
/184 = "pic184.jpg"
/185 = "pic185.jpg"
/186 = "pic186.jpg"
/187 = "pic187.jpg"
/188 = "pic188.jpg"
/189 = "pic189.jpg"
/190 = "pic190.jpg"
/191 = "pic191.jpg"
/192 = "pic192.jpg"
/193 = "pic193.jpg"
/194 = "pic194.jpg"
/195 = "pic195.jpg"
/196 = "pic196.jpg"
/197 = "pic197.jpg"
/198 = "pic198.jpg"
/199 = "pic199.jpg"
/200 = "pic200.jpg"
</item>



**************************************************************************************************************
**************************************************************************************************************
    EDITABLE INSTRUCTIONS: change instructions here
**************************************************************************************************************
**************************************************************

<item instructions>
/ 1 = "This study examines how people make simple judgments.~n~nYou will see pairs of items flashed one after the other. The first is a real life item. The second is a Chinese character. The real-life image simply serves as a warning signal for the Chinese character and should otherwise be ignored. Your job is to judge the visual pleasantness of the Chinese characters."
/ 2 = "If the Chinese character is less visually pleasing than average, press the left (E) <%expressions.buttoninstruct1%>. If the Chinese character is more visually pleasing than average, press the right (I) <%expressions.buttoninstruct1%>.

It is important to note that the real-life item can sometimes bias people’s judgments of the drawings. Because we are interested in how people can avoid being biased, please try your absolute best not to let the real-life items bias your judgment of the drawings! Give us an honest assessment of the drawings, regardless of the images that precede them."
/ 3 = "To get a feel for the task, we will begin with 10 practice trials. Again, your task is to judge whether the Chinese characters are less visually pleasing or more visual pleasing than average by pressing either the 'E' or 'I' <%expressions.buttoninstruct1%>."
/ 4 = "Practice is now complete and the task will now begin. As a reminder, if the Chinese character is less visually pleasing than average, press the left 'E' <%expressions.buttoninstruct1%>. If it is more visual pleasing than average, press the right 'I' <%expressions.buttoninstruct1%>."
</item>


<text summary>
/ items = ("You judged <% (trial.primeA.percentcorrect) %> % of the Chinese characters to be <% item.attributeAlabel.item.1 %> when they were preceded by a <% item.primeAlabel.item.1 %> picture.

You judged <% (100 - trial.primeB.percentcorrect) %> % of the Chinese characters to be <% item.attributeAlabel.item.1 %> when they were preceded by a <% item.primeBlabel.item.1 %> picture.")
/ size = (60%, 60%)
/ hjustify = left
 </text>

 
 ****************************************************************************************************
general instruction expressions: adjust the instruction text depending on device used to run script
****************************************************************************************************

<expressions>
/buttoninstruct1 = if (computer.touch) {"button";} else {"key";}
/buttoninstruct2 = if (computer.touch) {"Place your index fingers over the left and right response buttons";} else {"Place your index finger on the E and I keys";}
</expressions>

*******************************
General Helper Instructions
******************************

<text getReady>
/items = ("Get Ready:
~n<%expressions.buttoninstruct2%>")
/ fontstyle = ("Arial", 3.00%, false, false, false, false, 5, 1)
/ size = (80%, 40%)
</text>

***********************************************************
these instructions will be run if the script is
run on a touchscreen
***********************************************************

<text touchscreenInstruct1>
/ items = ("General Note on Touchscreen Usage
 for this Task:")
/ fontstyle = ("Arial", 5%, true, false, false, false, 5, 1)
/ position = (50%, 20%)
/ size = (80%, 20%)
/ vjustify = center
</text>

<text touchscreenInstruct2>
/ items = ("All necessary response buttons/keys will be provided at the bottom of your screen.

For example, here you see the <SPACEBAR>.
Tap it to continue to read instructions.")
/ fontstyle = ("Arial", 3%, true, false, false, false, 5, 1)
/ position = (50%, 50%)
/ size = (70%, 30%)
/ vjustify = center
</text>

**************************************************************************************************************
                                !!!REMAINING CODE: Customize after careful consideration only!!!
**************************************************************************************************************


**************************************************************************************************************
**************************************************************************************************************
    DEFAULTS
**************************************************************************************************************
**************************************************************************************************************
script requires Inquisit 5.0.0.0 or higher


<defaults>
/canvasaspectratio = (4,3)
/minimumversion = "5.0.0.0"
/ fontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ screencolor = black
/ txbgcolor = black
/ txcolor = white
</defaults>

**************************************************************************************************************
**************************************************************************************************************
    DATA
**************************************************************************************************************
**************************************************************************************************************

******************
Raw Data Files
******************

<data>
/columns = (build, computer.platform, date, time, subject, blockcode, blocknum, trialcode, trialnum, values.primestim, values.targetstim,
                response, correct, latency,
                trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect)
/separatefiles = true
</data>

*******************
Summary Data File
*******************

<summarydata>
/columns = (script.filename, script.startdate, script.starttime, script.subjectid, script.elapsedtime, computer.platform, values.completed,
trial.primeA.totalpercentcorrect, trial.primeB.totalpercentcorrect, trial.primeNeutral.totalpercentcorrect)
/ separatefiles = true
</summarydata>

**************************************************************************************************************
**************************************************************************************************************
    VALUES: automatically updated
**************************************************************************************************************
**************************************************************************************************************

completed:                                    0 = script was not completed; 1 = script was completed (all conditions run)
/targetstim:                                stores the itemnumber of the current target stimulus
/primestim:                                    stores the itemnumber of the current prime stimulus

<values>
/completed = 0
/targetstim = 0
/primestim = 0
</values>

**************************************************************************************************************
**************************************************************************************************************
    EXPRESSIONS
**************************************************************************************************************
**************************************************************************************************************
expressions>
/ a = trial.primeA.percentcorrect
/ b = trial.primeB.percentcorrect
</expressions>

**************************************************************************************************************
**************************************************************************************************************
    INSTRUCTIONS
**************************************************************************************************************
**************************************************************************************************************

list instructions>
/ items = (1, 2, 3, 4, 5, 6, 7)
/ resetinterval = 20
/ selectionmode = sequence
</list>

<text instructions>
/ items = instructions
/ hjustify = left
/ size = (90%, 60%)
/ position = (50%, 85%)
/ valign = bottom
/ select = sequence
</text>

<text spacebar>
/ items = ("Press the SPACE BAR to begin.")
/ position = (50%, 95%)
/ valign = bottom
</text>

<trial instructions>
/ stimulustimes = [1=instructions, spacebar]
/ correctresponse = (" ")
/ errormessage = false
/ recorddata = false
</trial>

*****************************
General Helper Trial
*****************************

This trial is used when participants are asked to place their fingers on specific response
buttons. On the touchscreen, this trial presents the (inactive) response buttons to the participants.
<trial getReady>
/ stimulusframes = [1 = getReady]
/ trialduration = 5000
/ validresponse = (18, 23)
/ beginresponsetime = 5000
/ errormessage = false
/ recorddata = false
</trial>

<trial touchscreenInstruct>
/ skip = [
    !computer.touch
]
/ stimulusframes = [1 = touchscreenInstruct1, touchscreenInstruct2]
/ validresponse = (57)
/ recorddata = false
</trial>

**************************************************************************************************************
**************************************************************************************************************
    PERFORMANCE SUMMARY
**************************************************************************************************************
**************************************************************************************************************
<trial summary>
/ stimulustimes = [0=summary]
/ validresponse = (" ")
/ recorddata = false
</trial>

**************************************************************************************************************
**************************************************************************************************************
    STIMULI
**************************************************************************************************************
**************************************************************************************************************
<text target>
/ items = text
/ select = noreplace
/ size = (20%, 20%)
</text>


<text primeB>
/ items = primeB
/ size = (20%, 20%)
</text>

<text primeA>
/ items = primeA
/ size = (20%, 20%)
</text>

<text primeD>
/ items = primeD
/ size = (20%, 20%)
</text>

<text primeC>
/ items = primeC
/ size = (20%, 20%)
</text>

<text attributeAlabel>
/ items = attributeAlabel
/ valign = top
/ halign = right
/ position = (95%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeBlabel>
/ items = attributeBlabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeClabel>
/ items = attributeClabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text attributeDlabel>
/ items = attributeDlabel
/ valign = top
/ halign = left
/ position = (5%, 5%)
/ txcolor = green
/ fontstyle = ("Arial", 5%)
</text>

<text error>
/ position = (50%, 75%)
/ items = ("X")
/ color = red
/ fontstyle = ("Arial", 10%, true)
</text>

<picture mask>
/ items = ("mask.jpg")
/ size = (23%, 23%)
</picture>

<shape blank>
/ shape = rectangle
/ color = black
/ size = (20%, 20%)
</shape>


**************************************************************************************************************
**************************************************************************************************************
    TRIALS    
**************************************************************************************************************
**************************************************************************************************************
<trial primeApractice>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=primeA; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>


<trial primeBpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeCpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeC; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeDpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeD; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeNeutralpractice>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ beginresponsetime = (200)
</trial>

<trial primeA>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ stimulustimes = [0=pleasant; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primea.currentitemnumber; values.targetstim = expressions.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeB>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeC>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

<trial primeD>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ stimulustimes = [0=primeB; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = text.primeb.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>


<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

**************************************************************************************************************
**************************************************************************************************************
    BLOCKS
**************************************************************************************************************
**************************************************************************************************************
<block touchscreenInfo>
/ trials = [1 = touchscreenInstruct]
</block>


<block practice>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1-3 = instructions; 4 = getReady; 5-14 = noreplace(primeApractice, primeBpractice, primeNeutralpractice)]
/ recorddata = true
</block>


<block test>
/ bgstim = (attributeAlabel, attributeBlabel)
/ trials = [1 = instructions; 2 = getReady; 3-50 = noreplace(primeA, primeB, primeNeutral)]
</block>


<block summary>
/ trials = [1=summary]
/ recorddata = false
</block>

**************************************************************************************************************
**************************************************************************************************************
    EXPERIMENT
**************************************************************************************************************
**************************************************************************************************************
<expt>
/ blocks = [
    1 = touchscreenInfo;
    2=practice;
    3=test;
    4=summary;
]
/onexptend = [values.completed = 1]
</expt>

***********************************************************************
Test Monkey
***********************************************************************
<monkey>
/ latencydistribution = normal(500, 100)
/ percentcorrect = 90
</monkey>


**************************************************************************************************************
                                                End of File
**************************************************************************************************************

Thank you very much in adavance!

Kerstin

The file not found errors are due to the fact that you are trying to run the script from the computer's temporary directory. Download the AMP file and store it in a *suitable* location on your computer, such as your Desktop or "My Files" folder.

For any image files you want to use, those need to reside in the same location.

The expression

/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]

is invalid because you do not have a <picture> element called "target" anymore. You have a <text> element, i.e. the thing needs to read



/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = text.target.currentitemnumber]

Dear Dave,

thank you very much for your quick answer.
I have changed the steps you recommanded but unfortunately the skript still doesn't work.

<trial primeNeutral>
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>

The file can still not be found: Please verify that the file path 'C:/Users/Kerstin/Desktop/neutral.jpg' is correct. What is wrong with that file?

<text target>
/ items = text -> the word "text" seems to be wrong. What do I have to use here? The message says that the item "text" cannot be located?
/ select = noreplace
/ size = (20%, 20%)
</text>

<trial primeNeutral>  
/ validresponse = ("E", "I")
/ correctresponse = ("E", "I")
/ stimulustimes = [0=primeNeutral; 75=blank; 200=target; 300=mask]
/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]
/ beginresponsetime = (200)
</trial>
-> Expression 'picture.target.currentitemnumber' is invalid. Expression contains an unknown element or property name.

Please tell me what I still do wrong. I have never worked with this program before and because I just copied most of the elements of the skript like the <trial primeNeutral> above, I have no idea what the program wants me to do.

Thank you very much again for your help.

Kerstin


There is a <picture> element called primeNeutral.

<picture primeNeutral>
/ items = ("neutral.jpg")
/ size = (20%, 20%)
</picture>

That picture element references a file called "neutral.jpg". The error message tells you that this file is not where it is supposed to be.

As for the other error message, see my previous reply:

/ontrialend = [values.primestim = picture.primeneutral.currentitemnumber; values.targetstim = picture.target.currentitemnumber]

There is *no* <picture target> anymore. You've changed it to a <text> element.

values.targetstim = picture.target.currentitemnumber

needs to read

values.targetstim = text.target.currentitemnumber]


Dear Dave,

thank you again for your answer. I hope that the program will work after all.

Kerstin



Kerstin
Kerstin
Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)
Group: Forum Members
Posts: 23, Visits: 29
Dear Dave,

the programm is working after all, but nevertheless there  is a strange thing I discovered. Whenever I use the function help and than search, the program is telling me, that it does not work anywore and afterwards it closes itself automatically "Inquisit Lab does  not work anymore" this is the message I always get. What is going on there?

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: 99K
Kerstin - Sunday, March 5, 2017
Dear Dave,

the programm is working after all, but nevertheless there  is a strange thing I discovered. Whenever I use the function help and than search, the program is telling me, that it does not work anywore and afterwards it closes itself automatically "Inquisit Lab does  not work anymore" this is the message I always get. What is going on there?

I don't know, first time I've heard of this. Is your Inquisit installation up to date? If not or when in doubt, download and install the latest version available via https://www.millisecond.com/download/

Kerstin
Kerstin
Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)Esteemed Member (1.7K reputation)
Group: Forum Members
Posts: 23, Visits: 29
Dave - Sunday, March 5, 2017
[quote]
Kerstin - Sunday, March 5, 2017
Dear Dave,

the programm is working after all, but nevertheless there  is a strange thing I discovered. Whenever I use the function help and than search, the program is telling me, that it does not work anywore and afterwards it closes itself automatically "Inquisit Lab does  not work anymore" this is the message I always get. What is going on there?
Yes, the installation is up to date. That is why I am so worried about this.


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: 99K
Kerstin - Monday, March 6, 2017
Dave - Sunday, March 5, 2017
[quote]
Kerstin - Sunday, March 5, 2017
Dear Dave,

the programm is working after all, but nevertheless there  is a strange thing I discovered. Whenever I use the function help and than search, the program is telling me, that it does not work anywore and afterwards it closes itself automatically "Inquisit Lab does  not work anymore" this is the message I always get. What is going on there?
Yes, the installation is up to date. That is why I am so worried about this.


Windows or OSX? Which version (e.g. Windows 7, 64-bit)?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search