|
sbashyam
|
|
|
Group: Forum Members
Posts: 30,
Visits: 56
|
Hi, I am posting my entire inquist code below for reference. I have coded this such that if the airplane stimuli is displayed on the screen, a white rectangle blocks out another stimuli that is displayed on scree. This works for all trials except in either trial test_2a, or test2, regardless of the stimuli presented, the right side of the screen is always blocked out. Can you help me debug this? Thank you.
<data> / columns = (date, time, subject, group, blockcode, trialcode, response, latency, stimulusitem) </data>
<defaults> / inputdevice = mouse / quitcommand = (Shift+'Q') / fontstyle = ("Verdana", -13, false, false, false, false, 5, 0) </defaults>
<values> / x = 0% </values>
******ITEMS***********
<item instructions> /1 = "Continue" </item>
<text continue> /items = instructions /select = 1 /vposition = 95% /hposition = 95% /color = black /fontstyle = ("Heiti TC", 3.00%, false, false, false, false, 5, 0) </text>
<item stimuli> /1 = "lunch.png" /2 = "lemonades.png" /3 = "coloring.png" /4 = "puzzle.png" /5 = "airplanes.png" </item>
<picture activity_group> /items = stimuli / selectionrate = block /size = (35%, 35%) / hposition = 50% / vposition = 80% </picture>
<item gippy_pool> / 1 = "gippy1.jpeg" / 2 = "gippy2.jpeg" </item>
<item tipa_pool> / 1 = "tipa1.jpeg" / 2 = "tipa2.jpeg" </item>
<item rules_and_comp> / 1 = "gippyrule.jpeg" / 2 = "tiparule.jpeg" / 3 = "comprehension.jpeg" </item>
<picture gippy_intro_pic> / items = gippy_pool / select = random / size = (80%, 80%) </picture>
<picture tipa_intro_pic> / items = tipa_pool / select = random / size = (80%, 80%) </picture>
<picture gippy_rule_pic> / items = rules_and_comp / select = 1 / size = (80%, 80%) </picture>
<picture tipa_rule_pic> / items = rules_and_comp / select = 2 / size = (80%, 80%) </picture>
<picture comprehension_pic> / items = rules_and_comp / select = 3 / size = (80%, 80%) </picture>
<item likert> /1 = "smile_1.png" /2 = "smile_2.png" /3 = "smile_3.png" /4 = "sad_1.png" /5 = "sad_2.png" /6 = "sad_3.png" /7 = "OK.png" /8 = "notOK.png" </item>
<picture OK> /items = likert /select = 7 /size = (40%, 40%) / hposition = 40% / vposition = 50% </picture>
<picture not_OK> /items = likert /select = 8 /size = (40%, 40%) / hposition = 60% / vposition = 50% </picture>
<picture a_little_good> /items = likert /select = 1 /size = (25%, 25%) / hposition = 25% / vposition = 50% </picture>
<picture sort_of_good> /items = likert /select = 2 /size = (25%, 25%) / hposition = 50% / vposition = 50% </picture>
<picture very_good> /items = likert /select = 3 /size = (25%, 25%) / hposition = 75% / vposition = 50% </picture>
<picture a_little_bad> /items = likert /select = 4 /size = (25%, 25%) / hposition = 25% / vposition = 50% </picture>
<picture sort_of_bad> /items = likert /select = 5 /size = (25%, 25%) / hposition = 50% / vposition = 50% </picture>
<picture very_bad> /items = likert /select = 6 /size = (25%, 25%) / hposition = 75% / vposition = 50% </picture>
<item boys> /1 = "person_a.jpg" /2 = "person_b.jpg" /3 = "person_c.jpg" /4 = "person_d.jpg" /5 = "person_e.jpg" /6 = "person_f.jpg" /7 = "person_g.jpg" /8 = "person_h.jpg" /9 = "person_i.jpg" /10 = "person_j.jpg" /11 = "person_k.jpg" /12 = "person_l.jpg" /13 = "person_m.jpg" /14 = "person_n.jpg" /15 = "person_o.jpg" /16 = "boy_v.png" /17 = "boy_x.png" /18 = "boy_w.png" </item>
<item girls> /1 = "girl_a.jpg" /2 = "girl_b.jpg" /3 = "girl_c.jpg" /4 = "girl_d.jpg" /5 = "girl_e.jpg" /6 = "girl_f.jpg" /7 = "girl_g.jpg" /8 = "girl_h.png" /9 = "girl_i.png" /10 = "girl_j.png" /11 = "girl_k.png" /12 = "girl_l.png" /13 = "girl_m.png" /14 = "girl_n.png" /15 = "girl_o.png" </item>
<shape rectangle> /size = (100%, 100%) /shape = rectangle /color = white / position = (50%, 50%) </shape>
<item black_speech> /1 = "black_speech_right.png" /2 = "black_Speech_left.png" </item>
<picture black_speech_right> / items = black_speech / select = 1 / size = (15%, 15%) / hposition = 60% / vposition =35% </picture>
<picture black_speech_left> /items = black_speech /select = 2 /size = (15%, 15%) / hposition = 40% / vposition = 35% </picture>
<picture flower_picture> /items = stimuli /select = 2 /size = (10%, 10%) /hposition = 50% /vposition = 80% / erase = false </picture>
<picture person_a> /items = boys /select = 1 /size = (50%,50%) /hposition = 25% /vposition = 50% / erase = false </picture>
<picture intro_a_boy> /items = boys /select = 1 /size = (50%,50%) /hposition = 20% /vposition = 50% / erase = false </picture>
<picture intro_a_girl> /items = girls /select = 1 /size = (50%,50%) /hposition = 20% /vposition = 50% / erase = false </picture>
<picture intro_b_boy> /items = boys /select = 2 /size = (50%,50%) /hposition = 80% /vposition = 50% / erase = false </picture>
<picture intro_b_girl> /items = girls /select = 2 /size = (50%,50%) /hposition = 80% /vposition = 50% / erase = false </picture>
<picture intro_c_boy> /items = boys /select = 3 /size = (50%,50%) /hposition = 50% /vposition = 50% / erase = false </picture>
<picture intro_c_girl> /items = girls /select = 3 /size = (50%,50%) /hposition = 50% /vposition = 50% </picture>
<picture girl_a> /items = girls /select = 4 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture>
<picture girl_b> /items = girls /select = 5 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture>
<picture girl_c> /items = girls /select = 6 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture>
<picture girl_d> /items = girls /select = 7 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture>
<picture girl_e> /items = girls /select = 8 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture>
<picture girl_f> /items = girls /select = 9 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture>
<picture girl_g> /items = girls /select = 10 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture>
<picture girl_h> /items = girls /select = 11 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture>
<picture girl_i> /items = girls /select = 12 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture>
<picture girl_j> /items = girls /select = 13 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture>
<picture girl_k> /items = girls /select = 14 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture>
<picture girl_l> /items = girls /select = 15 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture>
<shape whiterect> / shape = rectangle / color = white / size = (30%, 80%) / hposition = values.x / vposition = 50% / erase = false </shape>
<trial gippy_intro_trial> / stimulusframes = [1=gippy_intro_pic, continue] / validresponse = (continue) </trial>
<trial gippy_rule_trial> / stimulusframes = [1 = gippy_rule_pic, continue] / validresponse = (continue) </trial>
<trial tipa_intro_trial> / stimulusframes = [1 = tipa_intro_pic, continue] / validresponse = (continue) </trial>
<trial tipa_rule_trial> / stimulusframes = [1 = tipa_rule_pic, continue] / validresponse = (continue) </trial>
<trial comprehension_trial> / stimulusframes = [1 = comprehension_pic, continue] / validresponse = (continue) </trial>
<block gippy_block> / trials = [1 = gippy_intro_trial; 2 = gippy_rule_trial] </block>
<block tipa_block> / trials = [1 = tipa_intro_trial; 2 = tipa_rule_trial] </block>
<block comprehension_block> / trials = [1 = comprehension_trial] </block>
// Group 1: Named "gippy_first" <expt gippy_first> / subjects = (1 of 2) / blocks = [1 = gippy_block; 2 = comprehension_block; 3=noreplace(test1_girls, test1a_girls); 4=noreplace(test2_girls, test2a_girls); 5=noreplace(test3_girls, test3a_girls); 6=noreplace(test4_girls, test4a_girls)] </expt>
<block test1_girls> /trials = [1 = test1_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_a, girl_b, girl_c, activity_group) </block>
<trial test1_intro> / ontrialbegin = [ trial.test1_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test1_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ]
/stimulusframes = [1= continue] / validresponse = (continue) </trial>
<trial test1_speech> / stimulusframes = [1=continue, black_speech_right] / validresponse = (continue) </trial>
<trial judgment> / stimulusframes = [1 = rectangle; 2=OK,not_OK] / validresponse = (OK,not_OK) / branch = [if(trial.judgment.response == "OK") trial.good] / branch = [if(trial.judgment.response == "not_OK") trial.bad] </trial>
<trial good> / stimulusframes = [1 = rectangle; 2= a_little_good, sort_of_good, very_good] / validresponse = (a_little_good, sort_of_good, very_good) </trial>
<trial bad> / stimulusframes = [1 = rectangle; 2= a_little_bad, sort_of_bad, very_bad] / validresponse = (a_little_bad, sort_of_bad, very_bad) </trial>
<block test1a_girls> /trials = [1 = test1a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_a, girl_b, girl_c, activity_group) </block>
<trial test1a_intro> / ontrialbegin = [ trial.test1a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test1a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial>
<trial test1a_speech> / stimulusframes = [1=continue, black_speech_left] / validresponse = (continue) </trial>
<block test2_girls> /trials = [1 = test2_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_d, girl_j, girl_h, activity_group) </block>
<trial test2_intro> / ontrialbegin = [ trial.test2_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test2_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ]
/stimulusframes = [1= continue] / validresponse = (continue) </trial>
<block test2a_girls> /trials = [1 = test2a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_d, girl_j, girl_h, activity_group) </block>
<trial test2a_intro> / ontrialbegin = [ trial.test2a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes values.x = replace(75%); // pick left or right girl position at random trial.test2a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial>
<block test3_girls> /trials = [1 = test3_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_g, girl_e, girl_i, activity_group) </block>
<trial test3_intro> / ontrialbegin = [ trial.test3_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test3_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ]
/stimulusframes = [1= continue] / validresponse = (continue) </trial>
<block test3a_girls> /trials = [1 = test3a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_g, girl_e, girl_i, activity_group) </block>
<trial test3a_intro> / ontrialbegin = [ trial.test3a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test3a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial>
<block test4_girls> /trials = [1 = test4_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_f, girl_k, girl_l, activity_group) </block>
<trial test4_intro> / ontrialbegin = [ trial.test4_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test4_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ]
/stimulusframes = [1= continue] / validresponse = (continue) </trial>
<block test4a_girls> /trials = [1 = test4a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_f, girl_k, girl_l, activity_group) </block>
<trial test4a_intro> / ontrialbegin = [ trial.test4a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test4a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial>
|
|
|
|
|
Dave
|
|
|
Group: Administrators
Posts: 13K,
Visits: 110K
|
+xHi, I am posting my entire inquist code below for reference. I have coded this such that if the airplane stimuli is displayed on the screen, a white rectangle blocks out another stimuli that is displayed on scree. This works for all trials except in either trial test_2a, or test2, regardless of the stimuli presented, the right side of the screen is always blocked out. Can you help me debug this? Thank you. <data> / columns = (date, time, subject, group, blockcode, trialcode, response, latency, stimulusitem) </data> <defaults> / inputdevice = mouse / quitcommand = (Shift+'Q') / fontstyle = ("Verdana", -13, false, false, false, false, 5, 0) </defaults> <values> / x = 0% </values> ******ITEMS*********** <item instructions> /1 = "Continue" </item> <text continue> /items = instructions /select = 1 /vposition = 95% /hposition = 95% /color = black /fontstyle = ("Heiti TC", 3.00%, false, false, false, false, 5, 0) </text> <item stimuli> /1 = "lunch.png" /2 = "lemonades.png" /3 = "coloring.png" /4 = "puzzle.png" /5 = "airplanes.png" </item> <picture activity_group> /items = stimuli / selectionrate = block /size = (35%, 35%) / hposition = 50% / vposition = 80% </picture> <item gippy_pool> / 1 = "gippy1.jpeg" / 2 = "gippy2.jpeg" </item> <item tipa_pool> / 1 = "tipa1.jpeg" / 2 = "tipa2.jpeg" </item> <item rules_and_comp> / 1 = "gippyrule.jpeg" / 2 = "tiparule.jpeg" / 3 = "comprehension.jpeg" </item> <picture gippy_intro_pic> / items = gippy_pool / select = random / size = (80%, 80%) </picture> <picture tipa_intro_pic> / items = tipa_pool / select = random / size = (80%, 80%) </picture> <picture gippy_rule_pic> / items = rules_and_comp / select = 1 / size = (80%, 80%) </picture> <picture tipa_rule_pic> / items = rules_and_comp / select = 2 / size = (80%, 80%) </picture> <picture comprehension_pic> / items = rules_and_comp / select = 3 / size = (80%, 80%) </picture> <item likert> /1 = "smile_1.png" /2 = "smile_2.png" /3 = "smile_3.png" /4 = "sad_1.png" /5 = "sad_2.png" /6 = "sad_3.png" /7 = "OK.png" /8 = "notOK.png" </item> <picture OK> /items = likert /select = 7 /size = (40%, 40%) / hposition = 40% / vposition = 50% </picture> <picture not_OK> /items = likert /select = 8 /size = (40%, 40%) / hposition = 60% / vposition = 50% </picture> <picture a_little_good> /items = likert /select = 1 /size = (25%, 25%) / hposition = 25% / vposition = 50% </picture> <picture sort_of_good> /items = likert /select = 2 /size = (25%, 25%) / hposition = 50% / vposition = 50% </picture> <picture very_good> /items = likert /select = 3 /size = (25%, 25%) / hposition = 75% / vposition = 50% </picture> <picture a_little_bad> /items = likert /select = 4 /size = (25%, 25%) / hposition = 25% / vposition = 50% </picture> <picture sort_of_bad> /items = likert /select = 5 /size = (25%, 25%) / hposition = 50% / vposition = 50% </picture> <picture very_bad> /items = likert /select = 6 /size = (25%, 25%) / hposition = 75% / vposition = 50% </picture> <item boys> /1 = "person_a.jpg" /2 = "person_b.jpg" /3 = "person_c.jpg" /4 = "person_d.jpg" /5 = "person_e.jpg" /6 = "person_f.jpg" /7 = "person_g.jpg" /8 = "person_h.jpg" /9 = "person_i.jpg" /10 = "person_j.jpg" /11 = "person_k.jpg" /12 = "person_l.jpg" /13 = "person_m.jpg" /14 = "person_n.jpg" /15 = "person_o.jpg" /16 = "boy_v.png" /17 = "boy_x.png" /18 = "boy_w.png" </item> <item girls> /1 = "girl_a.jpg" /2 = "girl_b.jpg" /3 = "girl_c.jpg" /4 = "girl_d.jpg" /5 = "girl_e.jpg" /6 = "girl_f.jpg" /7 = "girl_g.jpg" /8 = "girl_h.png" /9 = "girl_i.png" /10 = "girl_j.png" /11 = "girl_k.png" /12 = "girl_l.png" /13 = "girl_m.png" /14 = "girl_n.png" /15 = "girl_o.png" </item> <shape rectangle> /size = (100%, 100%) /shape = rectangle /color = white / position = (50%, 50%) </shape> <item black_speech> /1 = "black_speech_right.png" /2 = "black_Speech_left.png" </item> <picture black_speech_right> / items = black_speech / select = 1 / size = (15%, 15%) / hposition = 60% / vposition =35% </picture> <picture black_speech_left> /items = black_speech /select = 2 /size = (15%, 15%) / hposition = 40% / vposition = 35% </picture> <picture flower_picture> /items = stimuli /select = 2 /size = (10%, 10%) /hposition = 50% /vposition = 80% / erase = false </picture> <picture person_a> /items = boys /select = 1 /size = (50%,50%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture intro_a_boy> /items = boys /select = 1 /size = (50%,50%) /hposition = 20% /vposition = 50% / erase = false </picture> <picture intro_a_girl> /items = girls /select = 1 /size = (50%,50%) /hposition = 20% /vposition = 50% / erase = false </picture> <picture intro_b_boy> /items = boys /select = 2 /size = (50%,50%) /hposition = 80% /vposition = 50% / erase = false </picture> <picture intro_b_girl> /items = girls /select = 2 /size = (50%,50%) /hposition = 80% /vposition = 50% / erase = false </picture> <picture intro_c_boy> /items = boys /select = 3 /size = (50%,50%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture intro_c_girl> /items = girls /select = 3 /size = (50%,50%) /hposition = 50% /vposition = 50% </picture> <picture girl_a> /items = girls /select = 4 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_b> /items = girls /select = 5 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_c> /items = girls /select = 6 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <picture girl_d> /items = girls /select = 7 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_e> /items = girls /select = 8 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_f> /items = girls /select = 9 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <picture girl_g> /items = girls /select = 10 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_h> /items = girls /select = 11 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_i> /items = girls /select = 12 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <picture girl_j> /items = girls /select = 13 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_k> /items = girls /select = 14 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_l> /items = girls /select = 15 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <shape whiterect> / shape = rectangle / color = white / size = (30%, 80%) / hposition = values.x / vposition = 50% / erase = false </shape> <trial gippy_intro_trial> / stimulusframes = [1=gippy_intro_pic, continue] / validresponse = (continue) </trial> <trial gippy_rule_trial> / stimulusframes = [1 = gippy_rule_pic, continue] / validresponse = (continue) </trial> <trial tipa_intro_trial> / stimulusframes = [1 = tipa_intro_pic, continue] / validresponse = (continue) </trial> <trial tipa_rule_trial> / stimulusframes = [1 = tipa_rule_pic, continue] / validresponse = (continue) </trial> <trial comprehension_trial> / stimulusframes = [1 = comprehension_pic, continue] / validresponse = (continue) </trial> <block gippy_block> / trials = [1 = gippy_intro_trial; 2 = gippy_rule_trial] </block> <block tipa_block> / trials = [1 = tipa_intro_trial; 2 = tipa_rule_trial] </block> <block comprehension_block> / trials = [1 = comprehension_trial] </block> // Group 1: Named "gippy_first" <expt gippy_first> / subjects = (1 of 2) / blocks = [1 = gippy_block; 2 = comprehension_block; 3=noreplace(test1_girls, test1a_girls); 4=noreplace(test2_girls, test2a_girls); 5=noreplace(test3_girls, test3a_girls); 6=noreplace(test4_girls, test4a_girls)] </expt> <block test1_girls> /trials = [1 = test1_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_a, girl_b, girl_c, activity_group) </block> <trial test1_intro> / ontrialbegin = [ trial.test1_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test1_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <trial test1_speech> / stimulusframes = [1=continue, black_speech_right] / validresponse = (continue) </trial> <trial judgment> / stimulusframes = [1 = rectangle; 2=OK,not_OK] / validresponse = (OK,not_OK) / branch = [if(trial.judgment.response == "OK") trial.good] / branch = [if(trial.judgment.response == "not_OK") trial.bad] </trial> <trial good> / stimulusframes = [1 = rectangle; 2= a_little_good, sort_of_good, very_good] / validresponse = (a_little_good, sort_of_good, very_good) </trial> <trial bad> / stimulusframes = [1 = rectangle; 2= a_little_bad, sort_of_bad, very_bad] / validresponse = (a_little_bad, sort_of_bad, very_bad) </trial> <block test1a_girls> /trials = [1 = test1a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_a, girl_b, girl_c, activity_group) </block> <trial test1a_intro> / ontrialbegin = [ trial.test1a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test1a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> <trial test1a_speech> / stimulusframes = [1=continue, black_speech_left] / validresponse = (continue) </trial> <block test2_girls> /trials = [1 = test2_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_d, girl_j, girl_h, activity_group) </block> <trial test2_intro> / ontrialbegin = [ trial.test2_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test2_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <block test2a_girls> /trials = [1 = test2a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_d, girl_j, girl_h, activity_group) </block> <trial test2a_intro> / ontrialbegin = [ trial.test2a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes values.x = replace(75%); // pick left or right girl position at random trial.test2a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> <block test3_girls> /trials = [1 = test3_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_g, girl_e, girl_i, activity_group) </block> <trial test3_intro> / ontrialbegin = [ trial.test3_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test3_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <block test3a_girls> /trials = [1 = test3a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_g, girl_e, girl_i, activity_group) </block> <trial test3a_intro> / ontrialbegin = [ trial.test3a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test3a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> <block test4_girls> /trials = [1 = test4_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_f, girl_k, girl_l, activity_group) </block> <trial test4_intro> / ontrialbegin = [ trial.test4_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test4_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <block test4a_girls> /trials = [1 = test4a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_f, girl_k, girl_l, activity_group) </block> <trial test4a_intro> / ontrialbegin = [ trial.test4a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test4a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> Please don't paste entire scripts into a post's body. This is error prone and difficult to work with. Further, if your code requires external files to run (images, etc.), you need to provide those files along with it. Helping you debug your problem is obviously not possible otherwise. Please put everything in a ZIP archive and then attach the archive to your post via +Insert -> Add File... If the archive is too large to attach here, upload it somewhere else (e.g. your DropBox or similar) and provide the download link.
|
|
|
|
|
sbashyam
|
|
|
Group: Forum Members
Posts: 30,
Visits: 56
|
+x+xHi, I am posting my entire inquist code below for reference. I have coded this such that if the airplane stimuli is displayed on the screen, a white rectangle blocks out another stimuli that is displayed on scree. This works for all trials except in either trial test_2a, or test2, regardless of the stimuli presented, the right side of the screen is always blocked out. Can you help me debug this? Thank you. <data> / columns = (date, time, subject, group, blockcode, trialcode, response, latency, stimulusitem) </data> <defaults> / inputdevice = mouse / quitcommand = (Shift+'Q') / fontstyle = ("Verdana", -13, false, false, false, false, 5, 0) </defaults> <values> / x = 0% </values> ******ITEMS*********** <item instructions> /1 = "Continue" </item> <text continue> /items = instructions /select = 1 /vposition = 95% /hposition = 95% /color = black /fontstyle = ("Heiti TC", 3.00%, false, false, false, false, 5, 0) </text> <item stimuli> /1 = "lunch.png" /2 = "lemonades.png" /3 = "coloring.png" /4 = "puzzle.png" /5 = "airplanes.png" </item> <picture activity_group> /items = stimuli / selectionrate = block /size = (35%, 35%) / hposition = 50% / vposition = 80% </picture> <item gippy_pool> / 1 = "gippy1.jpeg" / 2 = "gippy2.jpeg" </item> <item tipa_pool> / 1 = "tipa1.jpeg" / 2 = "tipa2.jpeg" </item> <item rules_and_comp> / 1 = "gippyrule.jpeg" / 2 = "tiparule.jpeg" / 3 = "comprehension.jpeg" </item> <picture gippy_intro_pic> / items = gippy_pool / select = random / size = (80%, 80%) </picture> <picture tipa_intro_pic> / items = tipa_pool / select = random / size = (80%, 80%) </picture> <picture gippy_rule_pic> / items = rules_and_comp / select = 1 / size = (80%, 80%) </picture> <picture tipa_rule_pic> / items = rules_and_comp / select = 2 / size = (80%, 80%) </picture> <picture comprehension_pic> / items = rules_and_comp / select = 3 / size = (80%, 80%) </picture> <item likert> /1 = "smile_1.png" /2 = "smile_2.png" /3 = "smile_3.png" /4 = "sad_1.png" /5 = "sad_2.png" /6 = "sad_3.png" /7 = "OK.png" /8 = "notOK.png" </item> <picture OK> /items = likert /select = 7 /size = (40%, 40%) / hposition = 40% / vposition = 50% </picture> <picture not_OK> /items = likert /select = 8 /size = (40%, 40%) / hposition = 60% / vposition = 50% </picture> <picture a_little_good> /items = likert /select = 1 /size = (25%, 25%) / hposition = 25% / vposition = 50% </picture> <picture sort_of_good> /items = likert /select = 2 /size = (25%, 25%) / hposition = 50% / vposition = 50% </picture> <picture very_good> /items = likert /select = 3 /size = (25%, 25%) / hposition = 75% / vposition = 50% </picture> <picture a_little_bad> /items = likert /select = 4 /size = (25%, 25%) / hposition = 25% / vposition = 50% </picture> <picture sort_of_bad> /items = likert /select = 5 /size = (25%, 25%) / hposition = 50% / vposition = 50% </picture> <picture very_bad> /items = likert /select = 6 /size = (25%, 25%) / hposition = 75% / vposition = 50% </picture> <item boys> /1 = "person_a.jpg" /2 = "person_b.jpg" /3 = "person_c.jpg" /4 = "person_d.jpg" /5 = "person_e.jpg" /6 = "person_f.jpg" /7 = "person_g.jpg" /8 = "person_h.jpg" /9 = "person_i.jpg" /10 = "person_j.jpg" /11 = "person_k.jpg" /12 = "person_l.jpg" /13 = "person_m.jpg" /14 = "person_n.jpg" /15 = "person_o.jpg" /16 = "boy_v.png" /17 = "boy_x.png" /18 = "boy_w.png" </item> <item girls> /1 = "girl_a.jpg" /2 = "girl_b.jpg" /3 = "girl_c.jpg" /4 = "girl_d.jpg" /5 = "girl_e.jpg" /6 = "girl_f.jpg" /7 = "girl_g.jpg" /8 = "girl_h.png" /9 = "girl_i.png" /10 = "girl_j.png" /11 = "girl_k.png" /12 = "girl_l.png" /13 = "girl_m.png" /14 = "girl_n.png" /15 = "girl_o.png" </item> <shape rectangle> /size = (100%, 100%) /shape = rectangle /color = white / position = (50%, 50%) </shape> <item black_speech> /1 = "black_speech_right.png" /2 = "black_Speech_left.png" </item> <picture black_speech_right> / items = black_speech / select = 1 / size = (15%, 15%) / hposition = 60% / vposition =35% </picture> <picture black_speech_left> /items = black_speech /select = 2 /size = (15%, 15%) / hposition = 40% / vposition = 35% </picture> <picture flower_picture> /items = stimuli /select = 2 /size = (10%, 10%) /hposition = 50% /vposition = 80% / erase = false </picture> <picture person_a> /items = boys /select = 1 /size = (50%,50%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture intro_a_boy> /items = boys /select = 1 /size = (50%,50%) /hposition = 20% /vposition = 50% / erase = false </picture> <picture intro_a_girl> /items = girls /select = 1 /size = (50%,50%) /hposition = 20% /vposition = 50% / erase = false </picture> <picture intro_b_boy> /items = boys /select = 2 /size = (50%,50%) /hposition = 80% /vposition = 50% / erase = false </picture> <picture intro_b_girl> /items = girls /select = 2 /size = (50%,50%) /hposition = 80% /vposition = 50% / erase = false </picture> <picture intro_c_boy> /items = boys /select = 3 /size = (50%,50%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture intro_c_girl> /items = girls /select = 3 /size = (50%,50%) /hposition = 50% /vposition = 50% </picture> <picture girl_a> /items = girls /select = 4 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_b> /items = girls /select = 5 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_c> /items = girls /select = 6 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <picture girl_d> /items = girls /select = 7 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_e> /items = girls /select = 8 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_f> /items = girls /select = 9 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <picture girl_g> /items = girls /select = 10 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_h> /items = girls /select = 11 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_i> /items = girls /select = 12 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <picture girl_j> /items = girls /select = 13 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_k> /items = girls /select = 14 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_l> /items = girls /select = 15 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <shape whiterect> / shape = rectangle / color = white / size = (30%, 80%) / hposition = values.x / vposition = 50% / erase = false </shape> <trial gippy_intro_trial> / stimulusframes = [1=gippy_intro_pic, continue] / validresponse = (continue) </trial> <trial gippy_rule_trial> / stimulusframes = [1 = gippy_rule_pic, continue] / validresponse = (continue) </trial> <trial tipa_intro_trial> / stimulusframes = [1 = tipa_intro_pic, continue] / validresponse = (continue) </trial> <trial tipa_rule_trial> / stimulusframes = [1 = tipa_rule_pic, continue] / validresponse = (continue) </trial> <trial comprehension_trial> / stimulusframes = [1 = comprehension_pic, continue] / validresponse = (continue) </trial> <block gippy_block> / trials = [1 = gippy_intro_trial; 2 = gippy_rule_trial] </block> <block tipa_block> / trials = [1 = tipa_intro_trial; 2 = tipa_rule_trial] </block> <block comprehension_block> / trials = [1 = comprehension_trial] </block> // Group 1: Named "gippy_first" <expt gippy_first> / subjects = (1 of 2) / blocks = [1 = gippy_block; 2 = comprehension_block; 3=noreplace(test1_girls, test1a_girls); 4=noreplace(test2_girls, test2a_girls); 5=noreplace(test3_girls, test3a_girls); 6=noreplace(test4_girls, test4a_girls)] </expt> <block test1_girls> /trials = [1 = test1_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_a, girl_b, girl_c, activity_group) </block> <trial test1_intro> / ontrialbegin = [ trial.test1_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test1_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <trial test1_speech> / stimulusframes = [1=continue, black_speech_right] / validresponse = (continue) </trial> <trial judgment> / stimulusframes = [1 = rectangle; 2=OK,not_OK] / validresponse = (OK,not_OK) / branch = [if(trial.judgment.response == "OK") trial.good] / branch = [if(trial.judgment.response == "not_OK") trial.bad] </trial> <trial good> / stimulusframes = [1 = rectangle; 2= a_little_good, sort_of_good, very_good] / validresponse = (a_little_good, sort_of_good, very_good) </trial> <trial bad> / stimulusframes = [1 = rectangle; 2= a_little_bad, sort_of_bad, very_bad] / validresponse = (a_little_bad, sort_of_bad, very_bad) </trial> <block test1a_girls> /trials = [1 = test1a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_a, girl_b, girl_c, activity_group) </block> <trial test1a_intro> / ontrialbegin = [ trial.test1a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test1a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> <trial test1a_speech> / stimulusframes = [1=continue, black_speech_left] / validresponse = (continue) </trial> <block test2_girls> /trials = [1 = test2_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_d, girl_j, girl_h, activity_group) </block> <trial test2_intro> / ontrialbegin = [ trial.test2_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test2_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <block test2a_girls> /trials = [1 = test2a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_d, girl_j, girl_h, activity_group) </block> <trial test2a_intro> / ontrialbegin = [ trial.test2a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes values.x = replace(75%); // pick left or right girl position at random trial.test2a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> <block test3_girls> /trials = [1 = test3_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_g, girl_e, girl_i, activity_group) </block> <trial test3_intro> / ontrialbegin = [ trial.test3_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test3_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <block test3a_girls> /trials = [1 = test3a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_g, girl_e, girl_i, activity_group) </block> <trial test3a_intro> / ontrialbegin = [ trial.test3a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test3a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> <block test4_girls> /trials = [1 = test4_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_f, girl_k, girl_l, activity_group) </block> <trial test4_intro> / ontrialbegin = [ trial.test4_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test4_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <block test4a_girls> /trials = [1 = test4a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_f, girl_k, girl_l, activity_group) </block> <trial test4a_intro> / ontrialbegin = [ trial.test4a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test4a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> Please don't paste entire scripts into a post's body. This is error prone and difficult to work with. Further, if your code requires external files to run (images, etc.), you need to provide those files along with it. Helping you debug your problem is obviously not possible otherwise. Please put everything in a ZIP archive and then attach the archive to your post via +Insert -> Add File... If the archive is too large to attach here, upload it somewhere else (e.g. your DropBox or similar) and provide the download link. Hi Dave, My apologies, I have attached the file here Thank you
|
|
|
|
|
Dave
|
|
|
Group: Administrators
Posts: 13K,
Visits: 110K
|
+x+x+xHi, I am posting my entire inquist code below for reference. I have coded this such that if the airplane stimuli is displayed on the screen, a white rectangle blocks out another stimuli that is displayed on scree. This works for all trials except in either trial test_2a, or test2, regardless of the stimuli presented, the right side of the screen is always blocked out. Can you help me debug this? Thank you. <data> / columns = (date, time, subject, group, blockcode, trialcode, response, latency, stimulusitem) </data> <defaults> / inputdevice = mouse / quitcommand = (Shift+'Q') / fontstyle = ("Verdana", -13, false, false, false, false, 5, 0) </defaults> <values> / x = 0% </values> ******ITEMS*********** <item instructions> /1 = "Continue" </item> <text continue> /items = instructions /select = 1 /vposition = 95% /hposition = 95% /color = black /fontstyle = ("Heiti TC", 3.00%, false, false, false, false, 5, 0) </text> <item stimuli> /1 = "lunch.png" /2 = "lemonades.png" /3 = "coloring.png" /4 = "puzzle.png" /5 = "airplanes.png" </item> <picture activity_group> /items = stimuli / selectionrate = block /size = (35%, 35%) / hposition = 50% / vposition = 80% </picture> <item gippy_pool> / 1 = "gippy1.jpeg" / 2 = "gippy2.jpeg" </item> <item tipa_pool> / 1 = "tipa1.jpeg" / 2 = "tipa2.jpeg" </item> <item rules_and_comp> / 1 = "gippyrule.jpeg" / 2 = "tiparule.jpeg" / 3 = "comprehension.jpeg" </item> <picture gippy_intro_pic> / items = gippy_pool / select = random / size = (80%, 80%) </picture> <picture tipa_intro_pic> / items = tipa_pool / select = random / size = (80%, 80%) </picture> <picture gippy_rule_pic> / items = rules_and_comp / select = 1 / size = (80%, 80%) </picture> <picture tipa_rule_pic> / items = rules_and_comp / select = 2 / size = (80%, 80%) </picture> <picture comprehension_pic> / items = rules_and_comp / select = 3 / size = (80%, 80%) </picture> <item likert> /1 = "smile_1.png" /2 = "smile_2.png" /3 = "smile_3.png" /4 = "sad_1.png" /5 = "sad_2.png" /6 = "sad_3.png" /7 = "OK.png" /8 = "notOK.png" </item> <picture OK> /items = likert /select = 7 /size = (40%, 40%) / hposition = 40% / vposition = 50% </picture> <picture not_OK> /items = likert /select = 8 /size = (40%, 40%) / hposition = 60% / vposition = 50% </picture> <picture a_little_good> /items = likert /select = 1 /size = (25%, 25%) / hposition = 25% / vposition = 50% </picture> <picture sort_of_good> /items = likert /select = 2 /size = (25%, 25%) / hposition = 50% / vposition = 50% </picture> <picture very_good> /items = likert /select = 3 /size = (25%, 25%) / hposition = 75% / vposition = 50% </picture> <picture a_little_bad> /items = likert /select = 4 /size = (25%, 25%) / hposition = 25% / vposition = 50% </picture> <picture sort_of_bad> /items = likert /select = 5 /size = (25%, 25%) / hposition = 50% / vposition = 50% </picture> <picture very_bad> /items = likert /select = 6 /size = (25%, 25%) / hposition = 75% / vposition = 50% </picture> <item boys> /1 = "person_a.jpg" /2 = "person_b.jpg" /3 = "person_c.jpg" /4 = "person_d.jpg" /5 = "person_e.jpg" /6 = "person_f.jpg" /7 = "person_g.jpg" /8 = "person_h.jpg" /9 = "person_i.jpg" /10 = "person_j.jpg" /11 = "person_k.jpg" /12 = "person_l.jpg" /13 = "person_m.jpg" /14 = "person_n.jpg" /15 = "person_o.jpg" /16 = "boy_v.png" /17 = "boy_x.png" /18 = "boy_w.png" </item> <item girls> /1 = "girl_a.jpg" /2 = "girl_b.jpg" /3 = "girl_c.jpg" /4 = "girl_d.jpg" /5 = "girl_e.jpg" /6 = "girl_f.jpg" /7 = "girl_g.jpg" /8 = "girl_h.png" /9 = "girl_i.png" /10 = "girl_j.png" /11 = "girl_k.png" /12 = "girl_l.png" /13 = "girl_m.png" /14 = "girl_n.png" /15 = "girl_o.png" </item> <shape rectangle> /size = (100%, 100%) /shape = rectangle /color = white / position = (50%, 50%) </shape> <item black_speech> /1 = "black_speech_right.png" /2 = "black_Speech_left.png" </item> <picture black_speech_right> / items = black_speech / select = 1 / size = (15%, 15%) / hposition = 60% / vposition =35% </picture> <picture black_speech_left> /items = black_speech /select = 2 /size = (15%, 15%) / hposition = 40% / vposition = 35% </picture> <picture flower_picture> /items = stimuli /select = 2 /size = (10%, 10%) /hposition = 50% /vposition = 80% / erase = false </picture> <picture person_a> /items = boys /select = 1 /size = (50%,50%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture intro_a_boy> /items = boys /select = 1 /size = (50%,50%) /hposition = 20% /vposition = 50% / erase = false </picture> <picture intro_a_girl> /items = girls /select = 1 /size = (50%,50%) /hposition = 20% /vposition = 50% / erase = false </picture> <picture intro_b_boy> /items = boys /select = 2 /size = (50%,50%) /hposition = 80% /vposition = 50% / erase = false </picture> <picture intro_b_girl> /items = girls /select = 2 /size = (50%,50%) /hposition = 80% /vposition = 50% / erase = false </picture> <picture intro_c_boy> /items = boys /select = 3 /size = (50%,50%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture intro_c_girl> /items = girls /select = 3 /size = (50%,50%) /hposition = 50% /vposition = 50% </picture> <picture girl_a> /items = girls /select = 4 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_b> /items = girls /select = 5 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_c> /items = girls /select = 6 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <picture girl_d> /items = girls /select = 7 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_e> /items = girls /select = 8 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_f> /items = girls /select = 9 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <picture girl_g> /items = girls /select = 10 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_h> /items = girls /select = 11 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_i> /items = girls /select = 12 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <picture girl_j> /items = girls /select = 13 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_k> /items = girls /select = 14 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_l> /items = girls /select = 15 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <shape whiterect> / shape = rectangle / color = white / size = (30%, 80%) / hposition = values.x / vposition = 50% / erase = false </shape> <trial gippy_intro_trial> / stimulusframes = [1=gippy_intro_pic, continue] / validresponse = (continue) </trial> <trial gippy_rule_trial> / stimulusframes = [1 = gippy_rule_pic, continue] / validresponse = (continue) </trial> <trial tipa_intro_trial> / stimulusframes = [1 = tipa_intro_pic, continue] / validresponse = (continue) </trial> <trial tipa_rule_trial> / stimulusframes = [1 = tipa_rule_pic, continue] / validresponse = (continue) </trial> <trial comprehension_trial> / stimulusframes = [1 = comprehension_pic, continue] / validresponse = (continue) </trial> <block gippy_block> / trials = [1 = gippy_intro_trial; 2 = gippy_rule_trial] </block> <block tipa_block> / trials = [1 = tipa_intro_trial; 2 = tipa_rule_trial] </block> <block comprehension_block> / trials = [1 = comprehension_trial] </block> // Group 1: Named "gippy_first" <expt gippy_first> / subjects = (1 of 2) / blocks = [1 = gippy_block; 2 = comprehension_block; 3=noreplace(test1_girls, test1a_girls); 4=noreplace(test2_girls, test2a_girls); 5=noreplace(test3_girls, test3a_girls); 6=noreplace(test4_girls, test4a_girls)] </expt> <block test1_girls> /trials = [1 = test1_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_a, girl_b, girl_c, activity_group) </block> <trial test1_intro> / ontrialbegin = [ trial.test1_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test1_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <trial test1_speech> / stimulusframes = [1=continue, black_speech_right] / validresponse = (continue) </trial> <trial judgment> / stimulusframes = [1 = rectangle; 2=OK,not_OK] / validresponse = (OK,not_OK) / branch = [if(trial.judgment.response == "OK") trial.good] / branch = [if(trial.judgment.response == "not_OK") trial.bad] </trial> <trial good> / stimulusframes = [1 = rectangle; 2= a_little_good, sort_of_good, very_good] / validresponse = (a_little_good, sort_of_good, very_good) </trial> <trial bad> / stimulusframes = [1 = rectangle; 2= a_little_bad, sort_of_bad, very_bad] / validresponse = (a_little_bad, sort_of_bad, very_bad) </trial> <block test1a_girls> /trials = [1 = test1a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_a, girl_b, girl_c, activity_group) </block> <trial test1a_intro> / ontrialbegin = [ trial.test1a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test1a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> <trial test1a_speech> / stimulusframes = [1=continue, black_speech_left] / validresponse = (continue) </trial> <block test2_girls> /trials = [1 = test2_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_d, girl_j, girl_h, activity_group) </block> <trial test2_intro> / ontrialbegin = [ trial.test2_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test2_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <block test2a_girls> /trials = [1 = test2a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_d, girl_j, girl_h, activity_group) </block> <trial test2a_intro> / ontrialbegin = [ trial.test2a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes values.x = replace(75%); // pick left or right girl position at random trial.test2a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> <block test3_girls> /trials = [1 = test3_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_g, girl_e, girl_i, activity_group) </block> <trial test3_intro> / ontrialbegin = [ trial.test3_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test3_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <block test3a_girls> /trials = [1 = test3a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_g, girl_e, girl_i, activity_group) </block> <trial test3a_intro> / ontrialbegin = [ trial.test3a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test3a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> <block test4_girls> /trials = [1 = test4_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_f, girl_k, girl_l, activity_group) </block> <trial test4_intro> / ontrialbegin = [ trial.test4_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test4_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <block test4a_girls> /trials = [1 = test4a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_f, girl_k, girl_l, activity_group) </block> <trial test4a_intro> / ontrialbegin = [ trial.test4a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test4a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> Please don't paste entire scripts into a post's body. This is error prone and difficult to work with. Further, if your code requires external files to run (images, etc.), you need to provide those files along with it. Helping you debug your problem is obviously not possible otherwise. Please put everything in a ZIP archive and then attach the archive to your post via +Insert -> Add File... If the archive is too large to attach here, upload it somewhere else (e.g. your DropBox or similar) and provide the download link. Hi Dave, My apologies, I have attached the file here Thank you I'm not sure I understand the issue. Here's what I'm seeing when running the cpc_girls.iqx script from your archive, which seems to match what you pasted in your original post. I gave the masking rectangle a blue color, so it's very obvious whether it's displayed or not. Here is a run that had airplanes in test2a  and here's one that had airplanes in test2:  The problem isn't the rectangle, that's working fine. The problem is with the girl pics. Both blocks test2 and test2a display girl d, j, and h. <block test2_girls> /trials = [1 = test2_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_d, girl_j, girl_h, activity_group) </block> Girl D is on the left at 25% <picture girl_d> /items = girls /select = 7 /size = (30%,30%) /hposition = 25%/vposition = 50% / erase = false </picture> Girl J is ALSO at 25%, so you never see Girl D <picture girl_j> /items = girls /select = 13 /size = (30%,30%) /hposition = 25%/vposition = 50% / erase = false </picture> Girl H is in the center <picture girl_h> /items = girls /select = 11 /size = (30%,30%) /hposition = 50%/vposition = 50% / erase = false </picture> NO girl stimulus is on the right at 75% ever. It's not blocked out, there just isn't one. If I had to guess, I'd say that Girl D is all wrong for these blocks, but you'll know that better than I.
|
|
|
|
|
sbashyam
|
|
|
Group: Forum Members
Posts: 30,
Visits: 56
|
+x+x+x+xHi, I am posting my entire inquist code below for reference. I have coded this such that if the airplane stimuli is displayed on the screen, a white rectangle blocks out another stimuli that is displayed on scree. This works for all trials except in either trial test_2a, or test2, regardless of the stimuli presented, the right side of the screen is always blocked out. Can you help me debug this? Thank you. <data> / columns = (date, time, subject, group, blockcode, trialcode, response, latency, stimulusitem) </data> <defaults> / inputdevice = mouse / quitcommand = (Shift+'Q') / fontstyle = ("Verdana", -13, false, false, false, false, 5, 0) </defaults> <values> / x = 0% </values> ******ITEMS*********** <item instructions> /1 = "Continue" </item> <text continue> /items = instructions /select = 1 /vposition = 95% /hposition = 95% /color = black /fontstyle = ("Heiti TC", 3.00%, false, false, false, false, 5, 0) </text> <item stimuli> /1 = "lunch.png" /2 = "lemonades.png" /3 = "coloring.png" /4 = "puzzle.png" /5 = "airplanes.png" </item> <picture activity_group> /items = stimuli / selectionrate = block /size = (35%, 35%) / hposition = 50% / vposition = 80% </picture> <item gippy_pool> / 1 = "gippy1.jpeg" / 2 = "gippy2.jpeg" </item> <item tipa_pool> / 1 = "tipa1.jpeg" / 2 = "tipa2.jpeg" </item> <item rules_and_comp> / 1 = "gippyrule.jpeg" / 2 = "tiparule.jpeg" / 3 = "comprehension.jpeg" </item> <picture gippy_intro_pic> / items = gippy_pool / select = random / size = (80%, 80%) </picture> <picture tipa_intro_pic> / items = tipa_pool / select = random / size = (80%, 80%) </picture> <picture gippy_rule_pic> / items = rules_and_comp / select = 1 / size = (80%, 80%) </picture> <picture tipa_rule_pic> / items = rules_and_comp / select = 2 / size = (80%, 80%) </picture> <picture comprehension_pic> / items = rules_and_comp / select = 3 / size = (80%, 80%) </picture> <item likert> /1 = "smile_1.png" /2 = "smile_2.png" /3 = "smile_3.png" /4 = "sad_1.png" /5 = "sad_2.png" /6 = "sad_3.png" /7 = "OK.png" /8 = "notOK.png" </item> <picture OK> /items = likert /select = 7 /size = (40%, 40%) / hposition = 40% / vposition = 50% </picture> <picture not_OK> /items = likert /select = 8 /size = (40%, 40%) / hposition = 60% / vposition = 50% </picture> <picture a_little_good> /items = likert /select = 1 /size = (25%, 25%) / hposition = 25% / vposition = 50% </picture> <picture sort_of_good> /items = likert /select = 2 /size = (25%, 25%) / hposition = 50% / vposition = 50% </picture> <picture very_good> /items = likert /select = 3 /size = (25%, 25%) / hposition = 75% / vposition = 50% </picture> <picture a_little_bad> /items = likert /select = 4 /size = (25%, 25%) / hposition = 25% / vposition = 50% </picture> <picture sort_of_bad> /items = likert /select = 5 /size = (25%, 25%) / hposition = 50% / vposition = 50% </picture> <picture very_bad> /items = likert /select = 6 /size = (25%, 25%) / hposition = 75% / vposition = 50% </picture> <item boys> /1 = "person_a.jpg" /2 = "person_b.jpg" /3 = "person_c.jpg" /4 = "person_d.jpg" /5 = "person_e.jpg" /6 = "person_f.jpg" /7 = "person_g.jpg" /8 = "person_h.jpg" /9 = "person_i.jpg" /10 = "person_j.jpg" /11 = "person_k.jpg" /12 = "person_l.jpg" /13 = "person_m.jpg" /14 = "person_n.jpg" /15 = "person_o.jpg" /16 = "boy_v.png" /17 = "boy_x.png" /18 = "boy_w.png" </item> <item girls> /1 = "girl_a.jpg" /2 = "girl_b.jpg" /3 = "girl_c.jpg" /4 = "girl_d.jpg" /5 = "girl_e.jpg" /6 = "girl_f.jpg" /7 = "girl_g.jpg" /8 = "girl_h.png" /9 = "girl_i.png" /10 = "girl_j.png" /11 = "girl_k.png" /12 = "girl_l.png" /13 = "girl_m.png" /14 = "girl_n.png" /15 = "girl_o.png" </item> <shape rectangle> /size = (100%, 100%) /shape = rectangle /color = white / position = (50%, 50%) </shape> <item black_speech> /1 = "black_speech_right.png" /2 = "black_Speech_left.png" </item> <picture black_speech_right> / items = black_speech / select = 1 / size = (15%, 15%) / hposition = 60% / vposition =35% </picture> <picture black_speech_left> /items = black_speech /select = 2 /size = (15%, 15%) / hposition = 40% / vposition = 35% </picture> <picture flower_picture> /items = stimuli /select = 2 /size = (10%, 10%) /hposition = 50% /vposition = 80% / erase = false </picture> <picture person_a> /items = boys /select = 1 /size = (50%,50%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture intro_a_boy> /items = boys /select = 1 /size = (50%,50%) /hposition = 20% /vposition = 50% / erase = false </picture> <picture intro_a_girl> /items = girls /select = 1 /size = (50%,50%) /hposition = 20% /vposition = 50% / erase = false </picture> <picture intro_b_boy> /items = boys /select = 2 /size = (50%,50%) /hposition = 80% /vposition = 50% / erase = false </picture> <picture intro_b_girl> /items = girls /select = 2 /size = (50%,50%) /hposition = 80% /vposition = 50% / erase = false </picture> <picture intro_c_boy> /items = boys /select = 3 /size = (50%,50%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture intro_c_girl> /items = girls /select = 3 /size = (50%,50%) /hposition = 50% /vposition = 50% </picture> <picture girl_a> /items = girls /select = 4 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_b> /items = girls /select = 5 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_c> /items = girls /select = 6 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <picture girl_d> /items = girls /select = 7 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_e> /items = girls /select = 8 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_f> /items = girls /select = 9 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <picture girl_g> /items = girls /select = 10 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_h> /items = girls /select = 11 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_i> /items = girls /select = 12 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <picture girl_j> /items = girls /select = 13 /size = (30%,30%) /hposition = 25% /vposition = 50% / erase = false </picture> <picture girl_k> /items = girls /select = 14 /size = (30%,30%) /hposition = 50% /vposition = 50% / erase = false </picture> <picture girl_l> /items = girls /select = 15 /size = (30%,30%) /hposition = 75% /vposition = 50% / erase = false </picture> <shape whiterect> / shape = rectangle / color = white / size = (30%, 80%) / hposition = values.x / vposition = 50% / erase = false </shape> <trial gippy_intro_trial> / stimulusframes = [1=gippy_intro_pic, continue] / validresponse = (continue) </trial> <trial gippy_rule_trial> / stimulusframes = [1 = gippy_rule_pic, continue] / validresponse = (continue) </trial> <trial tipa_intro_trial> / stimulusframes = [1 = tipa_intro_pic, continue] / validresponse = (continue) </trial> <trial tipa_rule_trial> / stimulusframes = [1 = tipa_rule_pic, continue] / validresponse = (continue) </trial> <trial comprehension_trial> / stimulusframes = [1 = comprehension_pic, continue] / validresponse = (continue) </trial> <block gippy_block> / trials = [1 = gippy_intro_trial; 2 = gippy_rule_trial] </block> <block tipa_block> / trials = [1 = tipa_intro_trial; 2 = tipa_rule_trial] </block> <block comprehension_block> / trials = [1 = comprehension_trial] </block> // Group 1: Named "gippy_first" <expt gippy_first> / subjects = (1 of 2) / blocks = [1 = gippy_block; 2 = comprehension_block; 3=noreplace(test1_girls, test1a_girls); 4=noreplace(test2_girls, test2a_girls); 5=noreplace(test3_girls, test3a_girls); 6=noreplace(test4_girls, test4a_girls)] </expt> <block test1_girls> /trials = [1 = test1_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_a, girl_b, girl_c, activity_group) </block> <trial test1_intro> / ontrialbegin = [ trial.test1_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test1_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <trial test1_speech> / stimulusframes = [1=continue, black_speech_right] / validresponse = (continue) </trial> <trial judgment> / stimulusframes = [1 = rectangle; 2=OK,not_OK] / validresponse = (OK,not_OK) / branch = [if(trial.judgment.response == "OK") trial.good] / branch = [if(trial.judgment.response == "not_OK") trial.bad] </trial> <trial good> / stimulusframes = [1 = rectangle; 2= a_little_good, sort_of_good, very_good] / validresponse = (a_little_good, sort_of_good, very_good) </trial> <trial bad> / stimulusframes = [1 = rectangle; 2= a_little_bad, sort_of_bad, very_bad] / validresponse = (a_little_bad, sort_of_bad, very_bad) </trial> <block test1a_girls> /trials = [1 = test1a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_a, girl_b, girl_c, activity_group) </block> <trial test1a_intro> / ontrialbegin = [ trial.test1a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test1a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> <trial test1a_speech> / stimulusframes = [1=continue, black_speech_left] / validresponse = (continue) </trial> <block test2_girls> /trials = [1 = test2_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_d, girl_j, girl_h, activity_group) </block> <trial test2_intro> / ontrialbegin = [ trial.test2_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test2_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <block test2a_girls> /trials = [1 = test2a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_d, girl_j, girl_h, activity_group) </block> <trial test2a_intro> / ontrialbegin = [ trial.test2a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes values.x = replace(75%); // pick left or right girl position at random trial.test2a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> <block test3_girls> /trials = [1 = test3_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_g, girl_e, girl_i, activity_group) </block> <trial test3_intro> / ontrialbegin = [ trial.test3_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test3_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <block test3a_girls> /trials = [1 = test3a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_g, girl_e, girl_i, activity_group) </block> <trial test3a_intro> / ontrialbegin = [ trial.test3a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test3a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> <block test4_girls> /trials = [1 = test4_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_f, girl_k, girl_l, activity_group) </block> <trial test4_intro> / ontrialbegin = [ trial.test4_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(25%); // pick left or right girl position at random trial.test4_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1= continue] / validresponse = (continue) </trial> <block test4a_girls> /trials = [1 = test4a_intro; 2 = test1a_speech; 3 = judgment] / bgstim = ( girl_f, girl_k, girl_l, activity_group) </block> <trial test4a_intro> / ontrialbegin = [ trial.test4a_intro.resetstimulusframes(); // resets the trial's stimulus presentation sequence to its initial state if (picture.activity_group.currentitem == "airplanes.png") { // if current activity is either airplanes or airplanes values.x = replace(75%); // pick left or right girl position at random trial.test4a_intro.insertstimulusframe(shape.whiterect, 1); // cover up the randomly picked girl with white rectangle }; ] /stimulusframes = [1=continue] / validresponse = (continue) </trial> Please don't paste entire scripts into a post's body. This is error prone and difficult to work with. Further, if your code requires external files to run (images, etc.), you need to provide those files along with it. Helping you debug your problem is obviously not possible otherwise. Please put everything in a ZIP archive and then attach the archive to your post via +Insert -> Add File... If the archive is too large to attach here, upload it somewhere else (e.g. your DropBox or similar) and provide the download link. Hi Dave, My apologies, I have attached the file here Thank you I'm not sure I understand the issue. Here's what I'm seeing when running the cpc_girls.iqx script from your archive, which seems to match what you pasted in your original post. I gave the masking rectangle a blue color, so it's very obvious whether it's displayed or not. Here is a run that had airplanes in test2a  and here's one that had airplanes in test2:  The problem isn't the rectangle, that's working fine. The problem is that with the girl pics. Both blocks test2 and test2a display girl d, j, and h. <block test2_girls> /trials = [1 = test2_intro; 2 = test1_speech; 3 = judgment] / bgstim = ( girl_d, girl_j, girl_h, activity_group) </block> Girl D is on the left at 25% <picture girl_d> /items = girls /select = 7 /size = (30%,30%) /hposition = 25%/vposition = 50% / erase = false </picture> Girl J is ALSO at 25%, so you never see Girl D <picture girl_j> /items = girls /select = 13 /size = (30%,30%) /hposition = 25%/vposition = 50% / erase = false </picture> Girl H is in the center <picture girl_h> /items = girls /select = 11 /size = (30%,30%) /hposition = 50%/vposition = 50% / erase = false </picture> NO girl stimulus is on the right at 75% ever. It's not blocked out, there just isn't one. If I had to guess, I'd say that Girl D is all wrong for these blocks, but you'll know that better than I. Thank you!
|
|
|
|