/*@

Stroop Interference

Colored words or letter sequences are presented together with a color name below. The task is to respond with the YES-key if the color name gives the name of the letter colors shown or with the NO-key if not. The colored letters or words words are either congruent to their color, incongruent, or are neutral distractors. */
Experiment(){

Context(){
AssignmentGroup(){
new ROT = [13.37, 0.519, 0.268];
new GELB = [47.34, 0.429, 0.485];
new GRUEN = [20.2, 0.257, 0.442];
new BLAU = [16.44, 0.175, 0.155];
new WEISS = [55.4, 0.313, 0.329];
new R_JA = 0;
new R_NEIN = 1;
new Interference = 0;
new NEUT = 0;
new KON = 1;
new INKON = 2;
ExperimentName = "Stroop Experiment";
SubjectCode = "pxlab";
DataFileTrialFormat = "%SubjectCode% %TrialCounter% %Interference% %Trial.Feedback.Response% %Trial.TwoStrings.ResponseTime%";
new TrialReplicator = 0;
}
Session(){
Instruction(){
Text = lang2(["Stroop-Interference", " ", "Press any button to start a trial after the fixation mark is shown.", "There will appear a sequence of colored letters on the top and a color name on the bottom.", "Your task is to decide whether the bottom color word names the letter colors on top. You should always ignore the word content of the top row.", "If the bottom color word names the letter colors of the top row then press the left mouse button. If not then press the right mouse button.", "Your decision should be as fast as possible but you should not make any errors!", " ", "Press any key now to start the experiment!"], ["Experiment zum Stroop-Effekt", " ", "Wenn das Kreuz erscheint, können Sie durch einen Tastendruck die Reizdarbietung auslösen.", "Oben erscheint dann eine Folge von farbigen Buchstaben und unten erscheint ein Farbwort.", "Wenn das Farbwort die Farbe der Buchstaben benennt, drücken Sie \'ja\' - die linke Maustaste, wenn das Farbwort nicht die Buchstabenfarbe benennt, dann drücken Sie \'nein\' - die rechte Maustaste. ", "Urteilen Sie so schnell Sie können, aber versuchen Sie in jedem Fall falsche Antworten zu vermeiden!", " ", "Zum Starten bitte eine beliebige Taste drücken!"]);
}
}
SessionEnd(){
SessionEndMessage(){
}
}
Block( StoreData){
BlockStartMessage(){
}
}
BlockEnd(){
BlockEndMessage(){
}
}
Trial( TrialCounter, TrialReplicator, TwoStrings.SignalText, TwoStrings.ProbeText, TwoStrings.SignalColor, Interference, Feedback.CorrectCode, Feedback.Response, TwoStrings.ResponseTime){
FixationMark(){
Timer = de.pxlab.pxl.TimerCodes.RELEASE_RESPONSE_TIMER;
LineWidth = 3;
}
ClearScreen:wait1(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 500;
}
TwoStrings(){
SOADuration = 100;
SignalSize = 140;
Duration = 5000;
SignalLocationX = 0;
SignalLocationY = -45;
ProbeSize = 140;
ProbeLocationX = 0;
ProbeLocationY = 148;
ResponseSet = [1, 3];
}
Feedback(){
ResponseParameter = "Trial.TwoStrings.ResponseCode";
CorrectText = "%Trial.TwoStrings.ResponseTime@i% ms";
Evaluation = de.pxlab.pxl.EvaluationCodes.COMPARE_CODE;
FalseText = lang2("False!", "Falsch!");
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 1200;
Visible = 1;
}
ClearScreen:wait2(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 1000;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
/* Übung: 4 x 12 = 48 trials */
Block( 0){
Trial( ?, 1, <"GRÜN", "BLAU">, "ROT", ROT, INKON, R_JA, ?, ?);
Trial( ?, 1, "GELB", <"GELB", "GRÜN">, ROT, INKON, R_NEIN, ?, ?);
/* Trial(?, 1, <"DRFG", "NSLG">, "ROT", ROT, NEUT, R_JA, ?, ?); Trial(?, 1, <"KNPL", "TTMM">, "GELB", ROT, NEUT, R_NEIN, ?, ?); Trial(?, <1,2>, "ROT", "ROT", ROT, KON, R_JA, ?, ?); Trial(?, 1, "ROT", <"GRÜN", "BLAU">, ROT, KON, R_NEIN, ?, ?); Trial(?, 1, <"GELB", "ROT">, "GRÜN", GRUEN, INKON, R_JA, ?, ?); Trial(?, 1, "BLAU", <"GELB", "BLAU">, GRUEN, INKON, R_NEIN, ?, ?); */
Trial( ?, 1, <"TGZW", "LNVT">, "GRÜN", GRUEN, NEUT, R_JA, ?, ?);
Trial( ?, 1, <"NTFH", "CSNG">, "GELB", GRUEN, NEUT, R_NEIN, ?, ?);
/* Trial(?, <1,2>, "GRÜN", "GRÜN", GRUEN, KON, R_JA, ?, ?); Trial(?, 1, "GRÜN", <"GELB", "BLAU">, GRUEN, KON, R_NEIN, ?, ?); Trial(?, 1, <"ROT", "GRÜN">, "GELB", GELB, INKON, R_JA, ?, ?); Trial(?, 1, "BLAU", <"ROT", "BLAU">, GELB, INKON, R_NEIN, ?, ?); Trial(?, 1, <"DNRH", "FRVN">, "GELB", GELB, NEUT, R_JA, ?, ?); Trial(?, 1, <"RDNR", "HFGL">, "ROT", GELB, NEUT, R_NEIN, ?, ?); */
Trial( ?, <1, 2>, "GELB", "GELB", GELB, KON, R_JA, ?, ?);
Trial( ?, 1, "GELB", <"GRÜN", "BLAU">, GELB, KON, R_NEIN, ?, ?);
}
}
}
}