By erzsebet - 4/20/2019
Dear Helper, I wrote a very simple script, but even here I am unable to give which one is the correct response. How can I say that the correct answer for item/1 in firstwordtriplets is pressing the "j" key, for item/2 "j" again, for item/3 "b"?
<item firstwordtriplets> / 1 = " repülő seregély elefánt " / 2 = " sapka harang kendő " / 3 = " narancs körte golyó " </item>
I wrote this, but it accepts both given letters as correct all the times, if I understand it well:
<trial firstwordtriplets> / validresponse = ("b", "h", "j") / correctresponse = ("j", "j", "h") / stimulusframes = [1=firstwordtriplets] </trial>
Thank you for your help, Erzsebet
This is my whole script:
************************************************* Creating Text Stimuli ************************************************* <text firstwordtriplets> / items = firstwordtriplets </text> <item firstwordtriplets> / 1 = " repülő seregély elefánt " / 2 = " sapka harang kendő " / 3 = " narancs körte golyó " </item> <text secondwordtriplets> / items = secondwordtriplets </text> <item secondwordtriplets> / 1 = " repülő seregély elefánt " / 2 = " sapka harang kendő " / 3 = " narancs körte golyó " </item> <text bkey> / items = ("press B if the left word is the odd one out") / position = (25, 75) / txcolor = (0, 0, 255) </text> <text hkey> / items = ("press H if the middle word is the odd one out") / position = (50, 75) / txcolor = (0, 0, 255) </text> <text jkey> / items = ("press J if the right word is the odd one out") / position = (75, 75) / txcolor = (0, 0, 255) </text> ************************************************* Creating Instructions ************************************************* <page intro> ^^^^^^^^Odd one out 3 fingers B and H and J, B left, J right, H middle word, ^^^^^^^^^^press "H" to continue </page> <page first> ^^^^^^^^First part, which is the less similar in color? 3 fingers B and H and J, B left, J right, H middle word, ^^^^^^^^^^press "H" to continue </page> <page second> ^^^^^^^^^^Second part, which is the less similar in color? 3 fingers B and H and J, B left, J right, H middle word, ^^^^^^^^^^press "H" to continue </page> <page end> ^^^^^^ end ^^^^^^^^ thank you </page> <instruct> / nextkey = ("h") </instruct> ************************************************* Creating Trials ************************************************* <trial firstwordtriplets> / validresponse = ("b", "h", "j") / correctresponse = ("j", "j", "h") / stimulusframes = [1=firstwordtriplets] </trial> <trial secondwordtriplets> / validresponse = ("b", "h", "j") / correctresponse = ("j", "h", "j") / stimulusframes = [1=secondwordtriplets] </trial> ************************************************* Creating Blocks ************************************************* <block first> / trials = [1-3 = noreplace(firstwordtriplets)] / preinstructions = (first) / bgstim = (bkey, jkey, hkey) </block> <block second> / trials = [1-3 = noreplace(secondwordtriplets)] / preinstructions = (second) / bgstim = (bkey, jkey, hkey) </block> ************************************************* Creating an Expt ************************************************* <expt> / preinstructions = (intro) / postinstructions = (end) / blocks = [1=first; 2=second] </expt>h <defaults> / screencolor = (175, 175, 255) / fontstyle = ("Courier New", 14pt) </defaults>
|
By Dave - 4/21/2019
+xDear Helper, I wrote a very simple script, but even here I am unable to give which one is the correct response. How can I say that the correct answer for item/1 in firstwordtriplets is pressing the "j" key, for item/2 "j" again, for item/3 "b"?
<item firstwordtriplets> / 1 = " repülő seregély elefánt " / 2 = " sapka harang kendő " / 3 = " narancs körte golyó " </item>
I wrote this, but it accepts both given letters as correct all the times, if I understand it well:
<trial firstwordtriplets> / validresponse = ("b", "h", "j") / correctresponse = ("j", "j", "h") / stimulusframes = [1=firstwordtriplets] </trial>
Thank you for your help, Erzsebet
This is my whole script:
************************************************* Creating Text Stimuli ************************************************* <text firstwordtriplets> / items = firstwordtriplets </text> <item firstwordtriplets> / 1 = " repülő seregély elefánt " / 2 = " sapka harang kendő " / 3 = " narancs körte golyó " </item> <text secondwordtriplets> / items = secondwordtriplets </text> <item secondwordtriplets> / 1 = " repülő seregély elefánt " / 2 = " sapka harang kendő " / 3 = " narancs körte golyó " </item> <text bkey> / items = ("press B if the left word is the odd one out") / position = (25, 75) / txcolor = (0, 0, 255) </text> <text hkey> / items = ("press H if the middle word is the odd one out") / position = (50, 75) / txcolor = (0, 0, 255) </text> <text jkey> / items = ("press J if the right word is the odd one out") / position = (75, 75) / txcolor = (0, 0, 255) </text> ************************************************* Creating Instructions ************************************************* <page intro> ^^^^^^^^Odd one out 3 fingers B and H and J, B left, J right, H middle word, ^^^^^^^^^^press "H" to continue </page> <page first> ^^^^^^^^First part, which is the less similar in color? 3 fingers B and H and J, B left, J right, H middle word, ^^^^^^^^^^press "H" to continue </page> <page second> ^^^^^^^^^^Second part, which is the less similar in color? 3 fingers B and H and J, B left, J right, H middle word, ^^^^^^^^^^press "H" to continue </page> <page end> ^^^^^^ end ^^^^^^^^ thank you </page> <instruct> / nextkey = ("h") </instruct> ************************************************* Creating Trials ************************************************* <trial firstwordtriplets> / validresponse = ("b", "h", "j") / correctresponse = ("j", "j", "h") / stimulusframes = [1=firstwordtriplets] </trial> <trial secondwordtriplets> / validresponse = ("b", "h", "j") / correctresponse = ("j", "h", "j") / stimulusframes = [1=secondwordtriplets] </trial> ************************************************* Creating Blocks ************************************************* <block first> / trials = [1-3 = noreplace(firstwordtriplets)] / preinstructions = (first) / bgstim = (bkey, jkey, hkey) </block> <block second> / trials = [1-3 = noreplace(secondwordtriplets)] / preinstructions = (second) / bgstim = (bkey, jkey, hkey) </block> ************************************************* Creating an Expt ************************************************* <expt> / preinstructions = (intro) / postinstructions = (end) / blocks = [1=first; 2=second] </expt>h <defaults> / screencolor = (175, 175, 255) / fontstyle = ("Courier New", 14pt) </defaults> You need to use the /iscorrectresponse attribute in your <trial> element and put the keyboard scancode of the correct key for each item in a <list> linked to your stimuli. You can find numerous examples on how to do this on this forum, e.g. here https://www.millisecond.com/forums/FindPost15355.aspx
|
By erzsebet - 4/22/2019
+x+xDear Helper, I wrote a very simple script, but even here I am unable to give which one is the correct response. How can I say that the correct answer for item/1 in firstwordtriplets is pressing the "j" key, for item/2 "j" again, for item/3 "b"?
<item firstwordtriplets> / 1 = " repülő seregély elefánt " / 2 = " sapka harang kendő " / 3 = " narancs körte golyó " </item>
I wrote this, but it accepts both given letters as correct all the times, if I understand it well:
<trial firstwordtriplets> / validresponse = ("b", "h", "j") / correctresponse = ("j", "j", "h") / stimulusframes = [1=firstwordtriplets] </trial>
Thank you for your help, Erzsebet
This is my whole script:
************************************************* Creating Text Stimuli ************************************************* <text firstwordtriplets> / items = firstwordtriplets </text> <item firstwordtriplets> / 1 = " repülő seregély elefánt " / 2 = " sapka harang kendő " / 3 = " narancs körte golyó " </item> <text secondwordtriplets> / items = secondwordtriplets </text> <item secondwordtriplets> / 1 = " repülő seregély elefánt " / 2 = " sapka harang kendő " / 3 = " narancs körte golyó " </item> <text bkey> / items = ("press B if the left word is the odd one out") / position = (25, 75) / txcolor = (0, 0, 255) </text> <text hkey> / items = ("press H if the middle word is the odd one out") / position = (50, 75) / txcolor = (0, 0, 255) </text> <text jkey> / items = ("press J if the right word is the odd one out") / position = (75, 75) / txcolor = (0, 0, 255) </text> ************************************************* Creating Instructions ************************************************* <page intro> ^^^^^^^^Odd one out 3 fingers B and H and J, B left, J right, H middle word, ^^^^^^^^^^press "H" to continue </page> <page first> ^^^^^^^^First part, which is the less similar in color? 3 fingers B and H and J, B left, J right, H middle word, ^^^^^^^^^^press "H" to continue </page> <page second> ^^^^^^^^^^Second part, which is the less similar in color? 3 fingers B and H and J, B left, J right, H middle word, ^^^^^^^^^^press "H" to continue </page> <page end> ^^^^^^ end ^^^^^^^^ thank you </page> <instruct> / nextkey = ("h") </instruct> ************************************************* Creating Trials ************************************************* <trial firstwordtriplets> / validresponse = ("b", "h", "j") / correctresponse = ("j", "j", "h") / stimulusframes = [1=firstwordtriplets] </trial> <trial secondwordtriplets> / validresponse = ("b", "h", "j") / correctresponse = ("j", "h", "j") / stimulusframes = [1=secondwordtriplets] </trial> ************************************************* Creating Blocks ************************************************* <block first> / trials = [1-3 = noreplace(firstwordtriplets)] / preinstructions = (first) / bgstim = (bkey, jkey, hkey) </block> <block second> / trials = [1-3 = noreplace(secondwordtriplets)] / preinstructions = (second) / bgstim = (bkey, jkey, hkey) </block> ************************************************* Creating an Expt ************************************************* <expt> / preinstructions = (intro) / postinstructions = (end) / blocks = [1=first; 2=second] </expt>h <defaults> / screencolor = (175, 175, 255) / fontstyle = ("Courier New", 14pt) </defaults> You need to use the /iscorrectresponse attribute in your <trial> element and put the keyboard scancode of the correct key for each item in a <list> linked to your stimuli. You can find numerous examples on how to do this on this forum, e.g. here https://www.millisecond.com/forums/FindPost15355.aspx Thank you! Erzsebet
|
|