Millisecond Forums

Stroop Voice Recording Task

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

By Fatma Demiray - 1/24/2013

Hi,

I would like to do experiments using "some word-pairs" and "some words with images" in the same experiment by recording the reaction time of the participants, which is
similar to Verbal Stroop task in the library; however, I could not find a sample
task in the library. Additionally, I do not know how to program these
two parts of my experiment. How could I program the suitable script to do the experiments?


I would much obliged if anyone could assist me as soon as possible.

By Dave - 1/24/2013

The first thing you should do is work through all the tutorials included in the Inquisit documentation. These will help you acquire the basics re. setting up experiments with Inquisit and understanding its syntax.


Then move on and work through a number of existing scripts such as those available in the Task Library at millisecond.com. For anything you do not understand right away, look up the commands in the documentation / language reference.


Equipped with the above, start writing your own scripts according to your needs. If you hit any roadblock along the way, you can search the forum for solutions to similar questions or -- if none are available -- post your concrete questions.


Regards,


~Dave

By Fatma Demiray - 1/24/2013

I have been trying to figure out the logic of  how to program my experiment for a few days and I have already run and examined the available scripts in the library. In fact, when the Verbal Stroop for Inquisit 4, it suddenly stucks, which is also a kind of problem. In the modified Verbal Stroop script, we wish to use some word pairs and some words with related and unrelated  pictures instead of using color-word pairs as it is presented in the original script. For the first experiment, 32 English words will be randomly presented with 16 related words or 16 pictures or  with 16 unrelated words or 16 pictures. To illustrate, the word pair "pig" (in the middle of the screen) and "capra" (on the top right of the screen) will be shown for the participant to verbally translate the into their own language. In the same experiment, we would like to use the words with images in the same way mentioned above. For example, the word "horse" will be given with the related picture of "cow".


If you could help me construct the basic script with voice recording feature, I am able to develop it by myself gradually.


Thanks.

By Dave - 1/24/2013

I will gladly provide assistance and pointers. However, you need to be more specific re. where exactly you are stuck. The setup you pasted above is rather simple and the tutorials should provide you with enough to get started with that.

By Fatma Demiray - 1/24/2013

Sir, when I run the verbal stroop in the library under win8, it displays the first word and then it never moves on further. I wonder whether there is something wrong with the original script.

By Dave - 1/24/2013

Have you tried running the script on a different computer? It might as well be that there is something wrong with your Windows 8 machine.


The issue indicates that the script is not getting any microphone input, so you need to check your microphone and settings.

By Fatma Demiray - 1/24/2013

I will try it on a different OS as soon as possible and then inform you.

By Fatma Demiray - 1/24/2013

By the way, I would like to replace the "inputdevice = keyboard" with "inputdevice = voicerecord". Could anyone help me how to do it? The whole script is below:


---------------------------------------------------------------------------------------
*** DEFAULTS ***
---------------------------------------------------------------------------------------           

<defaults>
/ screencolor = (255,255,255)
/ font = ("Arial", -18, 400, 0, 34)
/ txbgcolor = (0, 0, 0)
/ txcolor = (0,0,0)
/ inputdevice = keyboard
</defaults>

<data>
/ columns = [date time subject trialcode blockcode blocknum trialnum trialdata trialdata latency response]
</data>

------------------------------------------------------------------------------------
*** TEXTS AND TARGETS ***
------------------------------------------------------------------------------------

<text word>
/ select = noreplace
/ position = (5,50)
/ items = word
/ font = ("Arial", -20, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item word>
/1 = "word"
</item>

<text nonword>
/ select = noreplace
/ position = (93,50)
/ items = nonword
/ font = ("Arial", -20, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item nonword>
/1 = "nonword"
</item>


<text relatedwords1>
/ select = noreplace
/ erase = true(0,0,0)
/ position = (50,50)
/ items = relatedwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item relatedwords1>
 / 1 = "above"
 / 2 = "acquire"
 / 3 = "back"
 / 4 = "baggage"
 / 5 = "bake"
 / 6 = "cafeteria"
 / 7 = "dad"
 / 8 = "dairy"
 / 9 = "early"
 / 10 = "famine"
 / 11 = "gangster"
 / 12 = "garden"
 / 13 = "labor"
 / 14 = "laugh"
 / 15 = "laws"
 / 16 = "league"
 / 17 = "pail"
 / 18 = "rake"
</item>

<text relatedwords2>
/ select = linked(relatedwords1)
/ erase = true(0,0,0)
/ position = (50,50)
/ items = relatedwords2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item relatedwords2>
 / 1 = "below"
 / 2 = "get"
 / 3 = "front"
 / 4 = "luggage"
 / 5 = "cake"
 / 6 = "food"
 / 7 = "mom"
 / 8 = "milk"
 / 9 = "late"
 / 10 = "hunger"
 / 11 = "mob"
 / 12 = "flower"
 / 13 = "work"
 / 14 = "cry"
 / 15 = "rules"
 / 16 = "baseball"
 / 17 = "bucket"
 / 18 = "leaves"

</item>

<text unrelatedwords1>
/ select = noreplace
/ erase = true(0,0,0)
/ position = (50,50)
/ items = unrelatedwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item unrelatedwords1>
 / 1 = "ache"
 / 2 = "addict"
 / 3 = "bacon"
 / 4 = "bait"
 / 5 = "cable"
 / 6 = "calcium"
 / 7 = "dagger"
 / 8 = "eagle"
 / 9 = "fable"
 / 10 = "galaxy"
 / 11 = "garage"
 / 12 = "gem"
 / 13 = "lather"
 / 14 = "lawn"
 / 15 = "leaf"
 / 16 = "least"
 / 17 = "pain"
 / 18 = "sack"
</item>

<text unrelatedwords2>
/ select = linked(unrelatedwords1)
/ erase = true(0,0,0)
/ position = (50,50)
/ items = unrelatedwords2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item unrelatedwords2>
/ 1 =  "grade"
/ 2 =  "math"
/ 3 =  "leather"
/ 4 =  "potato"
/ 5 =  "last"
/ 6 =  "birthday"
/ 7 =  "balance"
/ 8 =  "damp"
/ 9 =  "damage"
/ 10 = "gallon"
/ 11 = "danger"
/ 12 = "biology"
/ 13 = "show"
/ 14 = "just"
/ 15 = "minor"
/ 16 = "mortgage"
/ 17 = "feather"
/ 18 = "routine"
</item>

<text relatednonwords1>
/ select = noreplace
/ erase = true(0,0,0)
/ position = (50,50)
/ items = relatednonwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item relatednonwords1>
 / 1 = "saddle"
 / 2 = "toes"
 / 3 = "tapioca"
 / 4 = "adult"
 / 5 = "afraid"
 / 6 = "ballot"
 / 7 = "banker"
 / 8 = "calf"
 / 9 = "closet"
 / 10 = "daisy"
 / 11 = "elbow"
 / 12 = "father"
 / 13 = "fawn"
 / 14 = "geometry"
 / 15 = "girl"
 / 16 = "leaves"
 / 17 = "lemon"
 / 18 = "lend"
</item>

<text relatednonwords2>
/ select = linked(relatednonwords1)
/ erase = true(0,0,0)
/ position = (50,50)
/ items = relatednonwords2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item relatednonwords2>
/ 1 =  "hirse"
/ 2 =  "feep"
/ 3 =  "podding"
/ 4 =  "cheld"
/ 5 =  "scire"
/ 6 =  "vode"
/ 7 =  "muney"
/ 8 =  "cov"
/ 9 =  "clethes"
/ 10 = "flover"
/ 11 = "arn"
/ 12 = "mather"
/ 13 = "deeq"
/ 14 = "meth"
/ 15 = "bok"
/ 16 = "tlee"
/ 17 = "loam"
/ 18 = "birrow"
</item>

<text unrelatednonwords1>
/ select = noreplace
/ erase = true(0,0,0)
/ position = (50,50)
/ items = unrelatednonwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item unrelatednonwords1>
 / 1 = "salmon"
 / 2 = "width"
 / 3 = "adorable"
 / 4 = "affection"
 / 5 = "age"
 / 6 = "band"
 / 7 = "bounce"
 / 8 = "clorox"
 / 9 = "crib"
 / 10 = "dark"
 / 11 = "elderly"
 / 12 = "fatigue"
 / 13 = "genius"
 / 14 = "gift"
 / 15 = "good"
 / 16 = "left"
 / 17 = "legs"
 / 18 = "lens"
</item>

<text unrelatednonwords2>
/ select = linked(unrelatednonwords1)
/ erase = true(0,0,0)
/ position = (50,50)
/ items = unrelatednonwords2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item unrelatednonwords2>
/ 1 = "ronge"
/ 2 = "oringe"
/ 3 = "haxe"
/ 4 = "jongle"
/ 5 = "businoss"
/ 6 = "cibbage"
/ 7 = "shoa"
/ 8 = "balloen"
/ 9 = "bene"
/ 10 = "cictus"
/ 11 = "cofe"
/ 12 = "eerthquake"
/ 13 = "cilm"
/ 14 = "tinic"
/ 15 = "yohurt"
/ 16 = "socretary"
/ 17 = "fruets"
/ 18 = "vergo"
</item>


<text target>
/ items = target
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0, 0, 0)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item target>
/1 = "*"
</item>

<shape erase>
/ color= (255,255,255)
/ size = (400,400)
</shape>

------------------------------------------------------------------------------------
*** INSTRUCTION PAGES ***
------------------------------------------------------------------------------------

<instruct>
/ nextkey = (" ")
/ lastlabel = "Press the spacebar to continue"
/ nextlabel = "Press the spacebar to continue"
/ font = ("Arial", -18, 400, 0, 34)
/ screencolor = (255,255,255)
/ txcolor = (0,0,0)
</instruct>

<page welcome>
^^^^
                     Welcome to the Lexical Decision Experiment.
</page>

<page instruction>

Directions: In each trial two words will be flashed on the screen. After you've seen both words, your task is to decide as quickly as possible whether both members of the pair are real words (e.g., apple   chair ) or if one is a nonword (e.g., box  appoe).
^^
Press the 'q' key if both are real words and press the 'p' key if one is a nonword. Try to be as fast and accurate as possible. There are 72 trials.
^^
Press the spacebar when you are ready to start. 
</page>

<page end>
^^
This is the end. Thank you for participating.
</page>

------------------------------------------------------------------------------------
*** TRIALS ***
------------------------------------------------------------------------------------

<trial relatedwords>
/ pretrialpause = 60
/ validresponse = (16,25)
/ correctresponse = (25)
/ stimulustimes = [200=target; 1200=relatedwords1; 1500=erase; 2100=relatedwords2; 2400=erase]
/ trialdata = [relatedwords1,relatedwords2]
</trial>

<trial unrelatedwords>
/ pretrialpause = 60
/ validresponse = (16,25)
/ correctresponse = (25)
/ stimulustimes = [200=target; 1200=unrelatedwords1; 1500=erase; 2100=unrelatedwords2; 2400=erase]
/ trialdata = [unrelatedwords1,unrelatedwords2]
</trial>

<trial relatednonwords>
/ pretrialpause = 60
/ validresponse = (16,25)
/ correctresponse = (16)
/ stimulustimes = [200=target; 1200=relatednonwords1; 1500=erase; 2100=relatednonwords2; 2400=erase]
/ trialdata = [relatednonwords1,relatednonwords2]
</trial>

<trial unrelatednonwords>
/ pretrialpause = 60
/ validresponse = (16,25)
/ correctresponse = (16)
/ stimulustimes = [200=target; 1200=unrelatednonwords1; 1500=erase; 2100=unrelatednonwords2; 2400=erase]
/ trialdata = [unrelatednonwords1,unrelatednonwords2]
</trial>
------------------------------------------------------------------------------------
*** BLOCKS ***
------------------------------------------------------------------------------------

<block trials>
/ preinstructions =(instruction)
/ bgstim =(word,nonword)
/ trials = [1-72 =noreplace(relatedwords,unrelatedwords,relatednonwords,unrelatednonwords)]
</block>

------------------------------------------------------------------------------------
*** EXPERIMENT***
------------------------------------------------------------------------------------

<expt>
/ blocks = [1=trials]
/ preinstructions = (welcome)
/ postinstructions = (end)
</expt>

By Dave - 1/24/2013


By the way, I would like to replace the "inputdevice = keyboard" with "inputdevice = voicerecord". Could anyone help me how to do it? The whole script is below:


---------------------------------------------------------------------------------------
*** DEFAULTS ***
---------------------------------------------------------------------------------------           

<defaults>
/ screencolor = (255,255,255)
/ font = ("Arial", -18, 400, 0, 34)
/ txbgcolor = (0, 0, 0)
/ txcolor = (0,0,0)
/ inputdevice = keyboard
</defaults>



That's where you change it.


You'll also have to change / remove the /validresponse and /correctresponse attributes in all <trial> elements.


By Fatma Demiray - 1/24/2013

Sir, I had already tried changing inputdevice=voicerecord, but it did not work. Now I've got the message. I will do the second one you told me.


Many thanks

By Fatma Demiray - 1/24/2013

Sir, I have one more question on the script above. If I would like to replace "relatedwords" with "relatedpictures" and "unrelatedwords" with "unrelatedpictures". In other words, I wish to use word-picture pairs basically. Could you enlighten me about adding pictures to the script?


Thank you very much in advance.

By Dave - 1/24/2013

You need to define <picture> elements. See the documentation for the <picture> element and work through the "Standard Picture IAT" tutorial.

By Fatma Demiray - 1/27/2013

Hi, I have prime-target pairs such as CAR/MOTORE in the first set of items including 30 pairs. In the second set of items I have 30 pairs like CAR/MAGLIONE. I have also another two different prime-target pairs in the same experiment which will synchronously be appeared on the screen  together as pairs. Is that below the right way of creating the experiment script? If not, could you just jot down a sample to enlighten me please?


<text relatedwords>
/ items = ("CAR", "MOTORE", there will be 30 pairs)
/ select = noreplace
</text>

<text unrelatedwords>
/ items = ("CAR", "MAGLIONE" there will be 30 pairs)
/ select = text.firstname.currentindex
</text>

<text relatedwords1>
/ items = ("CAR", "VEICOLO" there will be 30 pairs)
/ select = noreplace
</text>

<text unrelatedwords1>
/ items = ("CAR", "VERDURA" there will be 30 pairs)
/ select = text.firstname.currentindex
</text>

By Dave - 1/27/2013

See the "How to Present Stimulus Pairs" topic in the Inquisit documentation for examples and details.


The code you posted will not work and does not make sense. There is no element called 'firstname' to define a dependency on.


Moreover, the constituent items forming your pairs need to be in different elements, not in one and the same.

By Fatma Demiray - 1/27/2013

"How to Present Stimulus Pairs" topic is not enough clear for me to create the proper script for my experiment. In the first set of pairs, CAR given with MOTORE is just one of 30 word pairs under the related word items. In the same experiment for the second, third, and fourth set of pairs, do you mean that the word "CAR" is not possible to use ?

By Dave - 1/27/2013

No. Here's a simple example based on the documentation topic I mentioned. There are two pairs of related words, 'car - motor' and 'house - room'. You need to extend that (a) to more items (which is trivial) and (b) introduce further <text> and <trial> elements for your unrelated pairs.


<text related1>
/ items = ("Car", "House")
/ select = noreplace
/ position = (50%, 48%)
</text>

<text related2>
/ items = ("Motor", "Room")
/ select = text.related1.currentindex
/ position = (50%, 52%)
</text>

<trial relatedtrial>
/ stimulustimes = [0 = related1, related2]
/ validresponse = (57)
</trial>

<block myblock>
/trials = [1-2 = relatedtrial]
</block>

By Fatma Demiray - 1/27/2013

Dave, thank you for interest. Actually, I have just discovered SemanticPriming script in the library,
which will hopefully also help me in recoding the script for my experiment.

By Fatma Demiray - 1/27/2013

When I run the script, there appears random words from different item parts. What I was unable to do is to make first word in the targetwords1 and the first word in transwords1 display on the screen. I am in need of your efforts. In fact, I tried to recode the script as below :


---------------------------------------------------------------------------------------
*** DEFAULTS ***
---------------------------------------------------------------------------------------           

<defaults>
/ screencolor = (255,255,255)
/ font = ("Arial", -18, 400, 0, 34)
/ txbgcolor = (0, 0, 0)
/ txcolor = (0,0,0)
/ inputdevice = voicerecord
</defaults>

<data>
/ columns = [date time subject trialcode blockcode blocknum trialnum trialdata trialdata latency response]
</data>

------------------------------------------------------------------------------------
*** TEXTS AND TARGETS ***
------------------------------------------------------------------------------------

<text targetword>
/ select = noreplace
/ position = (5,50)
/ items = targetword
/ font = ("Arial", -20, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item targetword>
/1 = "targetword"
</item>

<text transword>
/ select = noreplace
/ position = (93,50)
/ items = transword
/ font = ("Arial", -20, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item transword>
/1 = "transword"
</item>


<text targetwords1>
/ select = noreplace
/ erase = true(0,0,0)
/ position = (50,50)
/ items = targetwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item targetwords1>
 / 1 = "car"
 / 2 = "bike"
 / 3 = "plane"
 / 4 = "onion"
 / 5 = "carrot"
 / 6 = "lettuce"
 / 7 = "couch"
 / 8 = "closet"
 / 9 = "chair"
 / 10 = "grape"
 / 11 = "lemon"
 / 12 = "cherry"
 / 13 = "dress"
 / 14 = "trousers"
 / 15 = "coat"
 / 16 = "yellow"
 / 17 = "black"
 / 18 = "purple"
 / 19 = "horse"
 / 20 = "lion"
 / 21 = "pig"
 / 22 = "lawyer"
 / 23 = "teacher"
 / 24 = "dentist"
 / 25 = "eye"
 / 26 = "chest"
 / 27 = "face"
 / 28 = "church"
 / 29 = "factory"
 / 30 = "farm"
</item>

<text transwords1>
/ select = linked(targetwords1)
/ erase = true(0,0,0)
/ position = (50,50)
/ items = transwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item transwords1>
 / 1 = "motore"
 / 2 = "treno"
 / 3 = "barca"
 / 4 = "pomodoro"
 / 5 = "fagiolo"
 / 6 = "pisello"
 / 7 = "tavolo"
 / 8 = "scaffale"
 / 9 = "letto"
 / 10 = "pesca"
 / 11 = "banana"
 / 12 = "mela"
 / 13 = "maglione"
 / 14 = "camicia"
 / 15 = "calzino"
 / 16 = "rosso"
 / 17 = "verde"
 / 18 = "blu"
 / 19 = "gatto"
 / 20 = "coniglio"
 / 21 = "cane"
 / 22 = "medico"
 / 23 = "panettiere"
 / 24 = "macellaio"
 / 25 = "gamba"
 / 26 = "caviglia"
 / 27 = "braccio"
 / 28 = "appartamento"
 / 29 = "museo"
 / 30 = "casa"
</item>

<text targetwords2>
/ select = noreplace
/ erase = true(0,0,0)
/ position = (50,50)
/ items = targetwords2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item targetwords2>
 / 1 = "car"
 / 2 = "bike"
 / 3 = "plane"
 / 4 = "onion"
 / 5 = "carrot"
 / 6 = "lettuce"
 / 7 = "couch"
 / 8 = "closet"
 / 9 = "chair"
 / 10 = "grape"
 / 11 = "lemon"
 / 12 = "cherry"
 / 13 = "dress"
 / 14 = "trousers"
 / 15 = "coat"
 / 16 = "yellow"
 / 17 = "black"
 / 18 = "purple"
 / 19 = "horse"
 / 20 = "lion"
 / 21 = "pig"
 / 22 = "lawyer"
 / 23 = "teacher"
 / 24 = "dentist"
 / 25 = "eye"
 / 26 = "chest"
 / 27 = "face"
 / 28 = "church"
 / 29 = "factory"
 / 30 = "farm"
</item>

<text transwords2>
/ select = linked(targetwords2)
/ erase = true(0,0,0)
/ position = (50,50)
/ items = transwords2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item transwords2>
/ 1 =  "maglione"
/ 2 =  "pesca"
/ 3 =  "tavolo"
/ 4 =  "camicia"
/ 5 =  "calzino"
/ 6 =  "gamba"
/ 7 =  "cane"
/ 8 =  "banana"
/ 9 =  "rosso"
/ 10 = "casa"
/ 11 = "braccio"
/ 12 = "blu"
/ 13 = "pisello"
/ 14 = "medico"
/ 15 = "appartamento"
/ 16 = "coniglio"
/ 17 = "scaffale"
/ 18 = "fagiolo"
/ 19 = "museo"
/ 20 = "caviglia"
/ 21 = "letto"
/ 22 = "mela"
/ 23 = "verde"
/ 24 = "barca"
/ 25 = "gatto"
/ 26 = "motore"
/ 27 = "macellanio"
/ 28 = "panettiere"
/ 29 = "podomoro"
/ 30 = "treno"
</item>

<text target>
/ items = target
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0, 0, 0)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item target>
/1 = ""
</item>

<shape erase>
/ color= (255,255,255)
/ size = (400,400)
</shape>

------------------------------------------------------------------------------------
*** INSTRUCTION PAGES ***
------------------------------------------------------------------------------------

<instruct>
/ nextkey = (" ")
/ lastlabel = "Press the spacebar to continue"
/ nextlabel = "Press the spacebar to continue"
/ font = ("Arial", -18, 400, 0, 34)
/ screencolor = (255,255,255)
/ txcolor = (0,0,0)
</instruct>

<page welcome>
^^^^
                   Lexical Decision Experiment.
</page>

<page instruction>

Directions: In each trial two words will be flashed on the screen.
</page>

<page end>
^^
This is the end. Thank you for participating.
</page>

------------------------------------------------------------------------------------
*** TRIALS ***
------------------------------------------------------------------------------------

<trial targetwords>
/ pretrialpause = 60
/ stimulustimes = [200=target; 1200=targetwords1; 1500=erase; 2100=targetwords2; 2400=erase]
/ trialdata = [targetwords1,targetwords2]
</trial>

<trial transwords>
/ pretrialpause = 60
/ stimulustimes = [200=target; 1200=transwords1; 1500=erase; 2100=transwords2; 2400=erase]
/ trialdata = [transwords1,transwords2]
</trial>

------------------------------------------------------------------------------------
*** BLOCKS ***
------------------------------------------------------------------------------------

<block trials>
/ preinstructions =(instruction)
/ bgstim =(targetword,transword)
/ trials = [1-72 =noreplace(targetwords,transwords)]
</block>

------------------------------------------------------------------------------------
*** EXPERIMENT***
------------------------------------------------------------------------------------

<expt>
/ blocks = [1=trials]
/ preinstructions = (welcome)
/ postinstructions = (end)
</expt>

By Dave - 1/27/2013

If you use 'noreplace' you get random selection. If you want to have sequential selection use 'sequence' and refer to the documentation for the /select attribute.


Also, your dependencies don't seem to make sense. Why should <text transwords2> depend on <text targetwords2) as per


<text transwords2>
/ select = linked(targetwords2)
/ erase = true(0,0,0)
/ position = (50,50)
/ items = transwords2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>


when in fact you do *not* use both in the same trial as per


<trial targetwords>
/ pretrialpause = 60
/ stimulustimes = [200=target; 1200=targetwords1; 1500=erase; 2100=targetwords2; 2400=erase]
/ trialdata = [targetwords1,targetwords2]
</trial>

<trial transwords>
/ pretrialpause = 60
/ stimulustimes = [200=target; 1200=transwords1; 1500=erase; 2100=transwords2; 2400=erase]
/ trialdata = [transwords1,transwords2]
</trial>


?


Certainly you would want targetwords2 to depend on targetwords1  and transwords2 to depend on transwords1, no?


Finally, do *not* use the deprecated linked() dependency. Use current() or next() instead.

By Fatma Demiray - 1/28/2013



Dave, the reason why I would like to use for example
"CAR" (target word) with "MOTORE"(trans. word) under the
first experiment using related word pairs is to expect the participants utter
each word in their native language. Similarly, I would like to construct the
second part of my experiment using the same target words with UNRELATED WORDS
such as "CAR" (target word2) with "MAGLIONE" (unrelated
word). In these two experiments, I am planning to show each Word pair sequentially,
I mean in the same order given above script. I am just wondering whether I am on
the right way or what should I do to correct my mistakes?


By Dave - 1/28/2013

As already detailed previously, for sequential selection you need to abandon noreplace and use /select=sequence instead. And, again, you need to make sure your dependencies are defined correctly.


Go back to the example I provided you with at http://www.millisecond.com/forums/Topic9522.aspx#9522 and change noreplace to sequence. Then move on from there.


By Fatma Demiray - 1/28/2013

I am dealing with it, Dave. Thanks

By Fatma Demiray - 1/28/2013

Dave, I did something in the way you had guided, but I think I missed some points, so it does not display any words on the screen. I have attached to the message in zipped folder. I really am in need of your help. If you could have a look at what I did, I would be much obliged.


[View:http://www.millisecond.com/community/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/14/4111.semantic-priming.rar:550:0]

By Dave - 1/28/2013

Fatma,


there are multiple syntax errors in your script. You need to fix them. Pay attention to the error messages in the Inquisit editor's message list pane.


Among other things


- there is no such thing as a /trial attribute for the <block> element. It's /trials.


- various closing brackets are missing (Missing ')' in the above attribute.


- you are referring to elements which do not exist in your script. There are no 'transwords1' and 'transwords2' <trial> elements in your script, yet you refer to them in the blocks.

By Fatma Demiray - 1/28/2013

Dave, do you know anyone whom I can get professional assistance because I am novice about coding the script ?

By Dave - 1/28/2013

No, but you really should have to resort to professional help with a relatively simple project like this. I'm confident you can tackle this with a little bit of more practice.


The errors in your script are easy to spot. Look at your <block> elements and go down the list in my previous reply.


(1) '/ trial = [...]' needs to be '/ trials = [...]'


(2) '/ trials = [1-30 = ...(...]' is missing a closing bracket and needs to be '/ trials = [1-30 = ...(...)]'


(3) '/ trials = [1-30 = ...(targetwords1, transwords1)]' does not make sense because there is no <trial transwords1> in your script. Thus '/ trials = [1-30 = ...(targetwords1, transwords1)]'

By Fatma Demiray - 1/28/2013

I have already done the required changes you mentioned, but when I run the script, there appears a word and then a black ribbon appears on the screen.

By Dave - 1/28/2013

then a black ribbon appears on the screen.


See the documentation for the /erase attribute.

By Fatma Demiray - 1/29/2013

Dave, thank you very much for your interest. Do you have or know any similar scripts to mine?

By Dave - 1/29/2013

I believe you have already found the most similar ones. Regardless, I would recommend you write the thing from scratch based on what we have discussed here so far.

By Fatma Demiray - 1/29/2013

I tried to put /erase code, but nothing changed. Additionally, only one word appears not the word pairs (one from targetwords1 and one from transwords1)


Actually, if I could figure out the logic of the creating scripts,  I am planning to buy the software for my future academic studies.

By Fatma Demiray - 1/29/2013

this is the final script :


---------------------------------------------------------------------------------------
*** DEFAULTS ***
---------------------------------------------------------------------------------------           

<defaults>
/ screencolor = (255,255,255)
/ font = ("Arial", -18, 400, 0, 34)
/ txbgcolor = (0, 0, 0)
/ txcolor = (0,0,0)
/ inputdevice = voicerecord
</defaults>

<data>
/ columns = [date time subject trialcode blockcode blocknum trialnum trialdata trialdata latency response]
</data>

------------------------------------------------------------------------------------
*** TEXTS AND TARGETS ***
------------------------------------------------------------------------------------

<text targetword>
/ select = sequence
/ position = (5,50)
/ items = targetword
/ font = ("Arial", -20, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item targetword>
/1 = "targetword"
</item>

<text transword>
/ select = sequence
/ erase  = true (0,0,0)
/ position = (93,50)
/ items = transword
/ font = ("Arial", -20, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item transword>
/1 = "transword"
</item>


<text targetwords1>
/ select = sequence
/ erase = true (0,0,0)
/ position = (50,50)
/ items = targetwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item targetwords1>
 / 1 = "car"
 / 2 = "bike"
 / 3 = "plane"
 / 4 = "onion"
 / 5 = "carrot"
 / 6 = "lettuce"
 / 7 = "couch"
 / 8 = "closet"
 / 9 = "chair"
 / 10 = "grape"
 / 11 = "lemon"
 / 12 = "cherry"
 / 13 = "dress"
 / 14 = "trousers"
 / 15 = "coat"
 / 16 = "yellow"
 / 17 = "black"
 / 18 = "purple"
 / 19 = "horse"
 / 20 = "lion"
 / 21 = "pig"
 / 22 = "lawyer"
 / 23 = "teacher"
 / 24 = "dentist"
 / 25 = "eye"
 / 26 = "chest"
 / 27 = "face"
 / 28 = "church"
 / 29 = "factory"
 / 30 = "farm"
</item>

<text transwords1>
/ select = sequence
/ erase = true (0,0,0)
/ position = (50,50)
/ items = transwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item transwords1>
 / 1 = "motore"
 / 2 = "treno"
 / 3 = "barca"
 / 4 = "pomodoro"
 / 5 = "fagiolo"
 / 6 = "pisello"
 / 7 = "tavolo"
 / 8 = "scaffale"
 / 9 = "letto"
 / 10 = "pesca"
 / 11 = "banana"
 / 12 = "mela"
 / 13 = "maglione"
 / 14 = "camicia"
 / 15 = "calzino"
 / 16 = "rosso"
 / 17 = "verde"
 / 18 = "blu"
 / 19 = "gatto"
 / 20 = "coniglio"
 / 21 = "cane"
 / 22 = "medico"
 / 23 = "panettiere"
 / 24 = "macellaio"
 / 25 = "gamba"
 / 26 = "caviglia"
 / 27 = "braccio"
 / 28 = "appartamento"
 / 29 = "museo"
 / 30 = "casa"
</item>

<text targetwords2>
/ select = sequence
/ erase = true (0,0,0)
/ position = (50,50)
/ items = targetwords2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item targetwords2>
 / 1 = "car"
 / 2 = "bike"
 / 3 = "plane"
 / 4 = "onion"
 / 5 = "carrot"
 / 6 = "lettuce"
 / 7 = "couch"
 / 8 = "closet"
 / 9 = "chair"
 / 10 = "grape"
 / 11 = "lemon"
 / 12 = "cherry"
 / 13 = "dress"
 / 14 = "trousers"
 / 15 = "coat"
 / 16 = "yellow"
 / 17 = "black"
 / 18 = "purple"
 / 19 = "horse"
 / 20 = "lion"
 / 21 = "pig"
 / 22 = "lawyer"
 / 23 = "teacher"
 / 24 = "dentist"
 / 25 = "eye"
 / 26 = "chest"
 / 27 = "face"
 / 28 = "church"
 / 29 = "factory"
 / 30 = "farm"
</item>

<text transwords2>
/ select = sequence
/ erase = true(0,0,0)
/ position = (50,50)
/ items = transwords2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item transwords2>
/ 1 =  "maglione"
/ 2 =  "pesca"
/ 3 =  "tavolo"
/ 4 =  "camicia"
/ 5 =  "calzino"
/ 6 =  "gamba"
/ 7 =  "cane"
/ 8 =  "banana"
/ 9 =  "rosso"
/ 10 = "casa"
/ 11 = "braccio"
/ 12 = "blu"
/ 13 = "pisello"
/ 14 = "medico"
/ 15 = "appartamento"
/ 16 = "coniglio"
/ 17 = "scaffale"
/ 18 = "fagiolo"
/ 19 = "museo"
/ 20 = "caviglia"
/ 21 = "letto"
/ 22 = "mela"
/ 23 = "verde"
/ 24 = "barca"
/ 25 = "gatto"
/ 26 = "motore"
/ 27 = "macellanio"
/ 28 = "panettiere"
/ 29 = "podomoro"
/ 30 = "treno"
</item>

<text target>
/ items = target
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0, 0, 0)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>

<item target>
/1 = ""
</item>

<shape erase>
/ color= (255,255,255)
/ size = (400,400)
</shape>

------------------------------------------------------------------------------------
*** INSTRUCTION PAGES ***
------------------------------------------------------------------------------------

<instruct>
/ nextkey = (" ")
/ lastlabel = "Press the spacebar to continue"
/ nextlabel = "Press the spacebar to continue"
/ font = ("Arial", -18, 400, 0, 34)
/ screencolor = (255,255,255)
/ txcolor = (0,0,0)
</instruct>

<page welcome>
^^^^
                   Lexical Decision Experiment.
</page>

<page instruction>

Directions: In each trial two words will be flashed on the screen.
</page>

<page end>
^^
This is the end. Thank you for participating.
</page>

------------------------------------------------------------------------------------
*** TRIALS ***
------------------------------------------------------------------------------------

<trial targetwords1>
/ pretrialpause = 60
/ stimulustimes = [0 = targetwords1, transwords1]
/ trialdata = [targetwords1]
</trial>

<trial targetwords2>
/ pretrialpause = 60
/ stimulustimes = [0 = targetwords2, transwords2]
/ trialdata = [targetwords2]
</trial>

------------------------------------------------------------------------------------
*** BLOCKS ***
------------------------------------------------------------------------------------

<block targetwords1>
/ preinstructions =(instruction)
/trials = [1-30=sequence(targetwords1)]
</block>
<block targetwords2>
/trials = [1-30=sequence(targetwords2)]
</block>

------------------------------------------------------------------------------------
*** EXPERIMENT***
------------------------------------------------------------------------------------

<expt>
/ blocks = [1=targetwords1]
/ blocks = [1=targetwords2]
/ preinstructions = (welcome)
/ postinstructions = (end)
</expt>

By Dave - 1/29/2013

Fatma,


#1: Your <text> elements are set to be erased in black. That's where your black ribbon artifact comes from:


<text targetwords1>
/ select = sequence
/ erase = true(0,0,0)
/ position = (50,50)
/ items = targetwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>


You need to change that to whatever you need / want.


#2:

Additionally, only one word appears not the word pairs (one from targetwords1 and one from transwords1)


Your <text> elements are (a) presented at the same time and (b) all inhabit the same screen position.


<trial targetwords1>
/ pretrialpause = 60
/ stimulustimes = [0 = targetwords1, transwords1]
/ trialdata = [targetwords1]
/ validresponse = (anyresponse)
</trial>




<text targetwords1>
/ select = sequence
/ erase = true(0,0,0)
/ position = (50,50)
/ items = targetwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>




<text transwords1>
/ select = sequence
/ erase = true(0,0,0)
/ position = (50,50)
/ items = transwords1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (255,255,255)
/ color = (0,0,0)
</text>


If you put several things in the same place at the same time you are obviously not going to see all of them. You need to place them in different positions.


#3:

if I could figure out the logic of the creating scripts,


The tutorials will teach you exactly that.


Regards,


~Dave


By Fatma Demiray - 1/29/2013

Dave, the importance of this experiment is that the participants will see targetwords1/2 with transwords1/2 at the same time; however, targetwords1/2 will be positioned in the middle of the screen on the other hand transwords1/2 will be placed on the top right of the screen. I am wondering the correct value for the transwords 1/2.   I think the first value 50 refers to middle in the code "/ position = (50,50)"

By Dave - 1/29/2013

You will find that covered in the documentation for the /position attribute.