Experiment(){
Context(){
AssignmentGroup(){
ExperimentName = lang2("Müller-Lyer Illusion: Adjustment Method", "Müller-Lyer-Täuschung: Herstellungsverfahren");
AdjustableStep = 2;
AdjustmentUpKey = de.pxlab.pxl.KeyCodes.RIGHT_KEY;
AdjustmentDownKey = de.pxlab.pxl.KeyCodes.LEFT_KEY;
SubjectCode = "pxlab";
HideCursor = 0;
StoreData = 0;
StoreDataTree = 0;
}
Session(){
Instruction(){
Text = lang2(["Line Length Judgement", " ", "Please adjust the bottom line such that it looks equal in length to the middle line of the top figure.", " ", "You may use the cursor left/right keys for adjustment.", " ", "Use the Space-key to signal that adjustment is finished.", " ", "And now press any key to start."], ["Einstellen von Strecken", " ", "Bitte stellen Sie im folgenden Bild die Linie unten genauso lang ein, wie die Mittellinie der oberen Figur.", "Zum Einstellen können Sie die Tasten für Cursor links/rechts benutzen.", " ", "Zur Anzeige, dass Sie fertig sind, drücken Sie die Leertaste.", " ", "Zum Start drücken Sie bitte eine beliebige Taste."]);
}
}
Trial( MuellerLyer:Standard.WingAngle, MuellerLyer:Adjust.BaseLine){
MuellerLyer:Standard(){
BaseLine = 300;
WingLine = 100;
WingAngle = 270;
LineWidth = 6;
Orientation = 0;
LocationX = -200;
LocationY = screenTop()+200;
Timer = de.pxlab.pxl.TimerCodes.NO_TIMER;
}
MuellerLyer:Adjust(){
adjustable BaseLine = 500;
WingLine = 0;
WingAngle = 270;
LineWidth = 6;
Orientation = 0;
LocationX = 200;
LocationY = screenBottom()-200;
Timer = de.pxlab.pxl.TimerCodes.RESPONSE_TIMER;
Overlay = de.pxlab.pxl.OverlayCodes.JOIN;
}
Feedback(){
FontSize = 32;
Text = lang2(["Result:\n ", "Physical length: %Trial.MuellerLyer:Standard.BaseLine% Pixel", "You have set the line to %Trial.MuellerLyer:Adjust.BaseLine% Pixel", " ", " ", "Press any key to go on."], ["Ergebnis:\n ", "Physikalische Länge: %Trial.MuellerLyer:Standard.BaseLine% Pixel", "Sie haben eingestellt: %Trial.MuellerLyer:Adjust.BaseLine% Pixel"]);
Alignment = de.pxlab.pxl.AlignmentCodes.LEFT;
Timer = de.pxlab.pxl.TimerCodes.RESPONSE_TIMER;
}
}
SessionEnd(){
Message(){
FontSize = 32;
Text = lang2("E N D", "E N D E");
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 1000;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block(){
Trial( 270, 543);
Trial( 90, 234);
}
}
}
}