Group: Forum Members
Posts: 6,
Visits: 17
|
Hello! I'm writing a script that is basically an IAT. The problem I've run into is that each element works great when run independently, but when I run the whole script, the stimulus pages (including instructions page too) are not registering an input from the computer. For example, the instructions page is supposed to wait until I press the space bar to proceed but instead it flashes on the screen quickly and then moves on. On the pages that require a response, the page stays up for the /timeout command time (5 sec). But when I press either of the valid keys (e or i), it does not do anything. I've posted the script below, in case that would be helpful. I've gone through section by section, and am completely stumped. As I mentioned, when one element is run at a time, each element works perfectly, and when I validate the script, it says that everything is fine. Thanks in advance for any help! :)
Here's the script I've written:
<trial positiveleftpos> / frames = [1=positive; 2=posleft1; 3=posleft2] / response = restype / validresponse=("e", "i") / correctresponse=("e") </trial>
<trial positiveleftneg> / stimulusframes = [1=negative; 2=posleft1; 3=posleft2] / response = restype / validresponse=("e","i") / correctresponse=("i") </trial>
<trial positiverightpos> / stimulusframes = [1=positive; 2=posright1; 3=posright2] / response = restype / validresponse=("e", "i") / correctresponse=("i") </trial>
<trial positiverightneg> / stimulusframes = [1=negative; 2=posright1; 3=posright2] / response = restype / validresponse=("e","i") / correctresponse=("e") </trial>
<text positive> /position = (50,50) / txbgcolor = transparent / fontstyle = ("MS Shell Dlg 2", 15%, false, false, false, false, 5, 1) / numitems = 1 / items=positive </text>
<text negative> /position = (50,50) / txbgcolor = transparent / fontstyle = ("MS Shell Dlg 2", 15%, false, false, false, false, 5, 1) / numitems = 1 / items=negative </text>
<item positive> / 1 = "JOY" / 2 = "HAPPY" / 3 = "SMILE" / 4 = "LAUGH" / 5 = "CARING" / 6 = "LOVE" </item>
<item negative> / 1 = "SAD" / 2 = "CRY" / 3 = "HURT" / 4 = "EVIL" / 5 = "UPSET" / 6 = "FROWN" </item>
<text posleft1> /position = (15,15) / txbgcolor = transparent / fontstyle = ("MS Shell Dlg 2", 5%, false, false, false, false, 5, 1) / numitems = 1 / items= ("Positive") </text>
<text posleft2> /position = (85,15) / txbgcolor = transparent / fontstyle = ("MS Shell Dlg 2", 5%, false, false, false, false, 5, 1) / numitems = 1 / items= ("Negative") </text>
<text posright1> /position = (15,15) / txbgcolor = transparent / fontstyle = ("MS Shell Dlg 2", 5%, false, false, false, false, 5, 1) / numitems = 1 / items= ("Negative") </text>
<text posright2> /position = (85,15) / txbgcolor = transparent / fontstyle = ("MS Shell Dlg 2", 5%, false, false, false, false, 5, 1) / numitems = 1 / items= ("Positive") </text>
<trial pracneut> / timeout = 250 / stimulusframes = [1=pracneut] </trial>
<trial oneu> / timeout = 250 / stimulusframes = [1=oneu] </trial>
<trial sneu> / timeout = 250 / stimulusframes = [1=sneu] </trial>
<trial distress> / timeout = 250 / stimulusframes = [1=distress] </trial>
<trial sthreat> / timeout = 250 / stimulusframes = [1=sthreat] </trial>
<trial othreat> / timeout = 250 / stimulusframes = [1=othreat] </trial>
<trial Mask> / timeout = 500 / stimulusframes = [1=Mask] / posttrialpause = 500 </trial>
<picture Mask> / position = (50, 50) / numitems = 1 / items = ("Mask.bmp") </picture>
<picture pracneut> / position = (50, 50) / numitems = 10 / select = sequence / items=("prac1.jpg", "prac2.jpg", "prac3.jpg", "prac4.jpg", "prac5.jpg", "prac6.jpg", "prac7.jpg", "prac8.jpg", "prac9.jpg", "prac10.jpg") </picture>
<picture sthreat> / position = (50, 50) / numitems = 16 / select = sequence / items=("sthreat1.jpg", "sthreat2.jpg", "sthreat3.jpg", "sthreat4.jpg", "sthreat5.jpg", "sthreat6.jpg", "sthreat7.jpg", "sthreat8.jpg", "sthreat9.jpg", "sthreat10.jpg", "sthreat11.jpg", "sthreat12.jpg", "sthreat13.jpg", "sthreat14.jpg", "sthreat15.jpg", "sthreat16.jpg") </picture>
<picture othreat> / position = (50, 50) / numitems = 16 / select = sequence / items=("othreat1.jpg", "othreat2.jpg", "othreat3.jpg", "othreat4.jpg", "othreat5.jpg", "othreat6.jpg", "othreat7.jpg", "othreat8.jpg", "othreat9.jpg", "othreat10.jpg", "othreat11.jpg", "othreat12.jpg", "othreat13.jpg", "othreat14.jpg", "othreat15.jpg", "othreat16.jpg") </picture>
<picture sneu> / position = (50, 50) / numitems = 16 / select = sequence / items=("sneu1.jpg", "sneu2.jpg", "sneu3.jpg", "sneu4.jpg", "sneu5.jpg", "sneu6.jpg", "sneu7.jpg", "sneu8.jpg", "sneu9.jpg", "sneu10.jpg", "sneu11.jpg", "sneu12.jpg", "sneu13.jpg", "sneu14.jpg", "sneu15.jpg", "sneu16.jpg") </picture>
<picture oneu> / position = (50, 50) / numitems = 16 / select = sequence / items=("oneu1.jpg", "oneu2.jpg", "oneu3.jpg", "oneu4.jpg", "oneu5.jpg", "oneu6.jpg", "oneu7.jpg", "oneu8.jpg", "oneu9.jpg", "oneu10.jpg", "oneu11.jpg", "oneu12.jpg", "oneu13.jpg", "oneu14.jpg", "oneu15.jpg", "oneu16.jpg") </picture>
<picture distress> / position = (50, 50) / numitems = 16 / select = sequence / items=("distress1.jpg", "distress2.jpg", "distress3.jpg", "distress4.jpg", "distress5.jpg", "distress6.jpg", "distress7.jpg", "distress8.jpg", "distress9.jpg", "distress10.jpg", "distress11.jpg", "distress12.jpg", "distress13.jpg", "distress14.jpg", "distress15.jpg", "distress16.jpg") </picture>
<response restype> / mode = free / timeout = 5000 </response>
<instruct> / nextkey = (" ") / prevkey = ("a") / font = ("Arial", -13, 400, 0, 34) </instruct>
<page intro1> PICTURES TASK^^ The goal of the following task is to hit one of two keys to indicate if a word is positive or negative. During the task, pictures will flash briefly on the computer screen followed by a word.^^ When the task begins, rest your left index finger on the "e" key and your right index finger on the "i" key. Tap the "e" key if the word matches the category at the top left corner of the screen and the "i" key if the word matches the category at the top right corner of the screen.^^ Before each set of pictures, you will see an "X" in the center of the screen. This lets you know that the next picture is about to appear.^^ Are you ready for some practice?^^ If so, hit the spacebar.^^ </page>
<page break0> You have completed the practice trials. Press the space bar when you're ready to begin again. </page>
<page break1> You now have a short break. Press the space bar when you're ready to begin the next section. </page>
<page break2> When you feel rested and ready to begin again, press the spacebar to begin the next section. </page>
<page end> You have finished the pictures task. Thank you for all of your hard work. </page>
<block practicegroup1> / screencolor = (175, 175, 255) / preinstructions = (intro1) / trials = [1=mask; 2=pracneut; 3=positiveleftpos; 4=mask; 5=pracneut; 6=positiveleftneg; 7=mask; 8=pracneut; 9=positiveleftneg; 10=mask; 11=pracneut; 12=positiveleftpos; 13=mask; 14=pracneut; 15=positiveleftpos; 16=mask; 17=pracneut; 18=positiveleftpos; 19=mask; 20=pracneut; 21=positiveleftpos; 22=mask; 23=pracneut; 24=positiveleftneg; 25=mask; 26=pracneut; 27=positiveleftpos; 28=mask; 29=pracneut; 30=positiveleftpos; 31=mask; 32=pracneut; 33=positiveleftneg; 34=mask; 35=pracneut; 36=positiveleftpos; 37=mask; 38=pracneut; 39=positiveleftneg; 40=mask; 41=pracneut; 42=positiveleftneg; 43=mask; 44=pracneut; 45=positiveleftneg; 46=mask; 47=pracneut; 48=positiveleftneg] </block>
<block practicegroup2> / screencolor = (175, 175, 255) / preinstructions = (intro1) / trials = [1=mask; 2=pracneut; 3=positiverightpos; 4=mask; 5=pracneut; 6=positiverightneg; 7=mask; 8=pracneut; 9=positiverightneg; 10=mask; 11=pracneut; 12=positiverightpos; 13=mask; 14=pracneut; 15=positiverightpos; 16=mask; 17=pracneut; 18=positiverightpos; 19=mask; 20=pracneut; 21=positiverightpos; 22=mask; 23=pracneut; 24=positiverightneg; 25=mask; 26=pracneut; 27=positiverightpos; 28=mask; 29=pracneut; 30=positiverightpos; 31=mask; 32=pracneut; 33=positiverightneg; 34=mask; 35=pracneut; 36=positiveleftpos; 37=mask; 38=pracneut; 39=positiverightneg; 40=mask; 41=pracneut; 42=positiverightneg; 43=mask; 44=pracneut; 45=positiverightneg; 46=mask; 47=pracneut; 48=positiverightneg] </block>
<block set1> / screencolor = (175, 175, 255) / preinstructions = (break0) / trials = [1=mask; 2=distress; 3=positiveleftpos; 4=mask; 5=oneu; 6=positiveleftneg; 7=mask; 8=othreat; 9=positiveleftneg; 10=mask; 11=sneu; 12=positiveleftneg; 13=mask; 14=othreat; 15=positiveleftpos; 16=mask; 17=sneu; 18=positiveleftneg; 19=mask; 20=oneu; 21=positiveleftneg; 22=mask; 23=distress; 24=positiveleftpos; 25=mask; 26=sthreat; 27=positiveleftneg; 28=mask; 29=sneu; 30=positiveleftpos; 31=mask; 32=oneu; 33=positiveleftpos; 34=mask; 35=othreat; 36=positiveleftneg; 37=mask; 38=oneu; 39=positiveleftpos; 40=mask; 41=distress; 42=positiveleftneg; 43=mask; 44=sthreat; 45=positiveleftpos; 46=mask; 47=sneu; 48=positiveleftneg; 49=mask; 50=sthreat; 51=positiveleftpos; 52=mask; 53=othreat; 54=positiveleftpos; 55=mask; 56=distress; 57=positiveleftneg; 58=mask; 59=sthreat; 60=positiveleftpos] </block>
<block set2> / screencolor = (175, 175, 255) / preinstructions = (break1) / trials = [1=mask; 2=oneu; 3=positiveleftpos; 4=mask; 5=sthreat; 6=positiveleftneg; 7=mask; 8=sneu; 9=positiveleftpos; 10=mask; 11=othreat; 12=positiveleftpos; 13=mask; 14=distress; 15=positiveleftpos; 16=mask; 17=sthreat; 18=positiveleftpos; 19=mask; 20=oneu; 21=positiveleftneg; 22=mask; 23=distress; 24=positiveleftneg; 25=mask; 26=sneu; 27=positiveleftpos; 28=mask; 29=othreat; 30=positiveleftneg; 31=mask; 32=oneu; 33=positiveleftneg; 34=mask; 35=sneu; 36=positiveleftneg; 37=mask; 38=distress; 39=positiveleftneg; 40=mask; 41=sthreat; 42=positiveleftneg; 43=mask; 44=oneu; 45=positiveleftpos; 46=mask; 47=sneu; 48=positiveleftneg; 49=mask; 50=othreat; 51=positiveleftpos; 52=mask; 53=distress; 54=positiveleftpos; 55=mask; 56=othreat; 57=positiveleftneg; 58=mask; 59=sthreat; 60=positiveleftpos] </block>
<block set3> / screencolor = (175, 175, 255) / preinstructions = (break1) / trials = [1=mask; 2=sthreat; 3=positiveleftneg; 4=mask; 5=othreat; 6=positiveleftneg; 7=mask; 8=sneu; 9=positiveleftneg; 10=mask; 11=oneu; 12=positiveleftpos; 13=mask; 14=othreat; 15=positiveleftpos; 16=mask; 17=distress; 18=positiveleftpos; 19=mask; 20=sneu; 21=positiveleftpos; 22=mask; 23=sthreat; 24=positiveleftpos; 25=mask; 26=distress; 27=positiveleftpos; 28=mask; 29=oneu; 30=positiveleftneg; 31=mask; 32=othreat; 33=positiveleftneg; 34=mask; 35=sneu; 36=positiveleftneg; 37=mask; 38=sthreat; 39=positiveleftneg; 40=mask; 41=othreat; 42=positiveleftpos; 43=mask; 44=oneu; 45=positiveleftneg; 46=mask; 47=distress; 48=positiveleftneg; 49=mask; 50=sthreat; 51=positiveleftpos; 52=mask; 53=oneu; 54=positiveleftpos; 55=mask; 56=distress; 57=positiveleftneg; 58=mask; 59=sneu; 60=positiveleftpos] </block>
<block set4> / screencolor = (175, 175, 255) / preinstructions = (break2) / trials = [1=mask; 2=sneu; 3=positiveleftpos; 4=mask; 5=othreat; 6=positiveleftneg; 7=mask; 8=distress; 9=positiveleftneg; 10=mask; 11=sthreat; 12=positiveleftneg; 13=mask; 14=othreat; 15=positiveleftpos; 16=mask; 17=oneu; 18=positiveleftneg; 19=mask; 20=sneu; 21=positiveleftneg; 22=mask; 23=distress; 24=positiveleftpos; 25=mask; 26=sthreat; 27=positiveleftneg; 28=mask; 29=oneu; 30=positiveleftpos; 31=mask; 32=sneu; 33=positiveleftpos; 34=mask; 35=distress; 36=positiveleftneg; 37=mask; 38=sthreat; 39=positiveleftpos; 40=mask; 41=oneu; 42=positiveleftneg; 43=mask; 44=distress; 45=positiveleftpos; 46=mask; 47=othreat; 48=positiveleftneg; 49=mask; 50=oneu; 51=positiveleftpos; 52=mask; 53=sthreat; 54=positiveleftpos; 55=mask; 56=sneu; 57=positiveleftneg; 58=mask; 59=othreat; 60=positiveleftpos] </block>
<block set5> / screencolor = (175, 175, 255) / preinstructions = (break0) / trials = [1=mask; 2=distress; 3=positiverightpos; 4=mask; 5=oneu; 6=positiverightneg; 7=mask; 8=othreat; 9=positiverightneg; 10=mask; 11=sneu; 12=positiverightneg; 13=mask; 14=othreat; 15=positiverightpos; 16=mask; 17=sneu; 18=positiverightneg; 19=mask; 20=oneu; 21=positiverightneg; 22=mask; 23=distress; 24=positiverightpos; 25=mask; 26=sthreat; 27=positiverightneg; 28=mask; 29=sneu; 30=positiverightpos; 31=mask; 32=oneu; 33=positiverightpos; 34=mask; 35=othreat; 36=positiverightneg; 37=mask; 38=oneu; 39=positiverightpos; 40=mask; 41=distress; 42=positiverightneg; 43=mask; 44=sthreat; 45=positiverightpos; 46=mask; 47=sneu; 48=positiverightneg; 49=mask; 50=sthreat; 51=positiverightpos; 52=mask; 53=othreat; 54=positiverightpos; 55=mask; 56=distress; 57=positiverightneg; 58=mask; 59=sthreat; 60=positiverightpos] </block>
<block set6> / screencolor = (175, 175, 255) / preinstructions = (break1) / trials = [1=mask; 2=oneu; 3=positiverightpos; 4=mask; 5=sthreat; 6=positiverightneg; 7=mask; 8=sneu; 9=positiverightpos; 10=mask; 11=othreat; 12=positiverightpos; 13=mask; 14=distress; 15=positiverightpos; 16=mask; 17=sthreat; 18=positiverightpos; 19=mask; 20=oneu; 21=positiverightneg; 22=mask; 23=distress; 24=positiverightneg; 25=mask; 26=sneu; 27=positiverightpos; 28=mask; 29=othreat; 30=positiverightneg; 31=mask; 32=oneu; 33=positiverightneg; 34=mask; 35=sneu; 36=positiverightneg; 37=mask; 38=distress; 39=positiverightneg; 40=mask; 41=sthreat; 42=positiverightneg; 43=mask; 44=oneu; 45=positiverightpos; 46=mask; 47=sneu; 48=positiverightneg; 49=mask; 50=othreat; 51=positiverightpos; 52=mask; 53=distress; 54=positiverightpos; 55=mask; 56=othreat; 57=positiverightneg; 58=mask; 59=sthreat; 60=positiverightpos] </block>
<block set7> / screencolor = (175, 175, 255) / preinstructions = (break1) / trials = [1=mask; 2=sthreat; 3=positiveleftneg; 4=mask; 5=othreat; 6=positiveleftneg; 7=mask; 8=sneu; 9=positiveleftneg; 10=mask; 11=oneu; 12=positiveleftpos; 13=mask; 14=othreat; 15=positiveleftpos; 16=mask; 17=distress; 18=positiveleftpos; 19=mask; 20=sneu; 21=positiveleftpos; 22=mask; 23=sthreat; 24=positiveleftpos; 25=mask; 26=distress; 27=positiveleftpos; 28=mask; 29=oneu; 30=positiveleftneg; 31=mask; 32=othreat; 33=positiveleftneg; 34=mask; 35=sneu; 36=positiveleftneg; 37=mask; 38=sthreat; 39=positiveleftneg; 40=mask; 41=othreat; 42=positiveleftpos; 43=mask; 44=oneu; 45=positiveleftneg; 46=mask; 47=distress; 48=positiveleftneg; 49=mask; 50=sthreat; 51=positiveleftpos; 52=mask; 53=oneu; 54=positiveleftpos; 55=mask; 56=distress; 57=positiveleftneg; 58=mask; 59=sneu; 60=positiveleftpos] </block>
<block set8> / screencolor = (175, 175, 255) / preinstructions = (break2) / trials = [1=mask; 2=sneu; 3=positiveleftpos; 4=mask; 5=othreat; 6=positiveleftneg; 7=mask; 8=distress; 9=positiveleftneg; 10=mask; 11=sthreat; 12=positiveleftneg; 13=mask; 14=othreat; 15=positiveleftpos; 16=mask; 17=oneu; 18=positiveleftneg; 19=mask; 20=sneu; 21=positiveleftneg; 22=mask; 23=distress; 24=positiveleftpos; 25=mask; 26=sthreat; 27=positiveleftneg; 28=mask; 29=oneu; 30=positiveleftpos; 31=mask; 32=sneu; 33=positiveleftpos; 34=mask; 35=distress; 36=positiveleftneg; 37=mask; 38=sthreat; 39=positiveleftpos; 40=mask; 41=oneu; 42=positiveleftneg; 43=mask; 44=distress; 45=positiveleftpos; 46=mask; 47=othreat; 48=positiveleftneg; 49=mask; 50=oneu; 51=positiveleftpos; 52=mask; 53=sthreat; 54=positiveleftpos; 55=mask; 56=sneu; 57=positiveleftneg; 58=mask; 59=othreat; 60=positiveleftpos] </block>
<expt> / blocks = [1=block1; 2=block2; 3=block3; 4=block4; 5=block5] </expt>
<variables> / group = (1 of 2) (block1=practicegroup1; block2=set1; block3=set2; block4=set3; block5=set4) / group = (2 of 2) (block1=practicegroup2; block2=set5; block3=set6; block4=set7; block5=set8) </variables>
<data> / columns = [date, time, group, subject, trialcode, trialtimeout, correct, latency] / labels = true / format = tab </data>
|
Group: Administrators
Posts: 13K,
Visits: 105K
|
I am completely unable to reproduce this. The script as posted works perfectly fine for me (i.e., instruction page stays up until spacebar is pressed, trials accept the intended input -- e or i -- during the timeout window). Please: (1) Make sure your Inquisit installation is up to date. Get the latest release from https://www.millisecond.com/download/ and install it if you are using some older version. (2) If the issue persists in the latest version, please *attach* the script you are using to this thread via +Insert -> Add File. Put the script and images in a ZIP archive and upload it. (3) Please also include a data file generated by running the script on your system. For this to be useful, you should log more data columns by amending your <data> element's /columns to at least include the 'response' column. <data> / columns = [date, time, group, subject, blocknum, blockcode, trialnum, trialcode, stimulusitem, stimulusnumber, trialtimeout, response, correct, latency] / labels = true / format = tab </data>
|