Experiment(){
Context(){
AssignmentGroup(){
ExperimentName = lang2("Paired Associates Learning", "Paarassoziationslernen");
JavaClassName = "PairedAssociatesLearning.java";
DataFileTrialFormat = "%Trial.TextParagraph:Test.Text% %Trial.Feedback.CorrectCode% %Trial.Feedback.Response%";
TrialFactor = 1;
BlockFactor = 30;
// SubjectCode = "pxlab";
new exName = "pala";
DataFileDestination = "X:/Daten";
TrialDataDirectory = "%exName%/dat";
DataTreeDirectory = "%exName%/dtr";
ProcessedDataDirectory = "%exName%/pdt";
SessionState = 0;
SessionGroup = [1, 2];
RandomizeTrials = 1;
new IntroText = ["Experiment zum Paarlernen", " ", "In jedem Durchgang erscheint eine Buchstabenfolge, die mit der Ziffer 1 oder der Ziffer 2 verknüpft ist. ", "Sie antworten jeweils mit der Ziffer, von der Sie glauben, dass sie mit der gezeigten Buchstabenfolge verknüpft ist.", "Zur Eingabe benützen Sie bitte die Ziffern im separaten Tastenblock der Tastatur.", "Nach Ihrer Eingabe wird Ihnen die korrekte Verknüpfung angezeigt. Die Darbietungen werden so lange wiederholt, bis sie für jede Buchstabenfolge mindestens 2-mal die richtige Ziffer eingegeben haben.", " ", "Zum Start bitte eine beliebige Taste drücken!"];
new StartText = "Bitte eine beliebige Taste drücken\n um den Hauptteil zu starten.";
}
Session( BlockCounter, Message.Text, SessionEnd.Message.Text, BlockEnd.ErrorControl.ErrorFreeSeries){
Message(){
FontSize = 24;
Alignment = 0;
Timer = de.pxlab.pxl.TimerCodes.RELEASE_RESPONSE_TIMER;
FontFamily = "SansSerif";
FontStyle = de.pxlab.pxl.FontStyleCodes.PLAIN;
Text = "A Paragraph of Text presented by PXLab";
Width = 800;
Wrapping = 1;
LocationX = 0;
LocationY = 0;
ReferencePoint = de.pxlab.pxl.PositionReferenceCodes.MIDDLE_CENTER;
LineSkipFactor = 1;
}
ClearScreen:startSession(){
Duration = 1000;
Timer = de.pxlab.pxl.TimerCodes.LIMITED_RESPONSE_TIMER;
}
}
SessionEnd(){
Message(){
FontSize = 24;
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 2000;
FontFamily = "SansSerif";
FontStyle = de.pxlab.pxl.FontStyleCodes.PLAIN;
Text = "A Paragraph of Text presented by PXLab";
Width = 800;
Wrapping = 1;
LocationX = 0;
LocationY = 0;
LineSkipFactor = 1;
}
}
Block( BlockCounter, StoreData, ResponseErrorCount);
BlockEnd(){
ErrorControl(){
ErrorTotal = 0;
ErrorFreeSeries = 0;
ErrorFreeTotal = 0;
Execute = 1;
Overlay = 0;
Timer = de.pxlab.pxl.TimerCodes.LIMITED_RESPONSE_TIMER;
Duration = 3000;
}
SessionStateControl(){
Type = de.pxlab.pxl.StateControlCodes.STOP_ON_CRITERION;
ControlParameter = "BlockEnd.ErrorControl.ErrorFreeSeries";
Criterion = 2;
Execute = 1;
Overlay = 0;
Timer = de.pxlab.pxl.TimerCodes.LIMITED_RESPONSE_TIMER;
Duration = 3000;
}
}
Trial( TrialCounter, TextParagraph:Test.Text, Feedback.CorrectCode, TextParagraph:Test.ResponseCode){
TextParagraph:Test(){
ResponseSet = [0, 97, 98];
Timer = de.pxlab.pxl.TimerCodes.LIMITED_RESPONSE_TIMER;
Duration = 5000;
FontSize = 80;
LocationY = -30;
FontFamily = "SansSerif";
FontStyle = de.pxlab.pxl.FontStyleCodes.PLAIN;
Width = 800;
Wrapping = 1;
LocationX = 0;
LineSkipFactor = 1;
}
Feedback(){
Visible = 1;
Evaluation = de.pxlab.pxl.EvaluationCodes.COMPARE_CODE;
ResponseParameter = "Trial.TextParagraph:Test.ResponseCode";
CorrectText = "%Trial.TextParagraph:Test.ResponseCode% \n Richtig!";
FalseText = "%Trial.TextParagraph:Test.ResponseCode% \n Falsch!";
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 2000;
FontSize = 80;
LocationY = -30;
ReferencePoint = de.pxlab.pxl.PositionReferenceCodes.TOP_CENTER;
FontFamily = "SansSerif";
FontStyle = de.pxlab.pxl.FontStyleCodes.PLAIN;
Text = "OK!";
Width = 800;
Wrapping = 1;
LocationX = 0;
LineSkipFactor = 1;
CorrectCode = 255;
TimeOutText = "Time out!";
SelectionSet = [0, 1];
CheckTimeOut = 0;
}
TextParagraph:Study(){
Text = "%Trial.TextParagraph:Test.Text% - %Trial.Feedback.CorrectCode%";
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 1000;
FontSize = 80;
LocationY = -30;
FontFamily = "SansSerif";
FontStyle = de.pxlab.pxl.FontStyleCodes.PLAIN;
Width = 800;
Wrapping = 1;
LocationX = 0;
Alignment = de.pxlab.pxl.AlignmentCodes.LEFT;
LineSkipFactor = 1;
}
ClearScreen:close(){
Duration = 2000;
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session( 1, IntroText, "Ende der Übungsphase", 0){
Block( ?, 0, 0){
Trial( ?, "PEW", 1, ?);
Trial( ?, "ZIK", 1, ?);
Trial( ?, "XAS", 1, ?);
Trial( ?, "RUK", 2, ?);
Trial( ?, "JOZ", 2, ?);
Trial( ?, "CUL", 2, ?);
}
}
Session( 1, StartText, "E N D E", 0){
Block( ?, 1, 0){
Trial( ?, "GUL", 1, ?);
Trial( ?, "DIW", 1, ?);
Trial( ?, "KEV", 1, ?);
Trial( ?, "PEK", 1, ?);
Trial( ?, "HED", 1, ?);
Trial( ?, "SEN", 1, ?);
Trial( ?, "WOR", 1, ?);
Trial( ?, "GAN", 1, ?);
Trial( ?, "NED", 1, ?);
Trial( ?, "BEF", 1, ?);
Trial( ?, "LAR", 2, ?);
Trial( ?, "MER", 2, ?);
Trial( ?, "NIR", 2, ?);
Trial( ?, "FIB", 2, ?);
Trial( ?, "DAH", 2, ?);
Trial( ?, "LOD", 2, ?);
Trial( ?, "LUF", 2, ?);
Trial( ?, "ZES", 2, ?);
Trial( ?, "SUV", 2, ?);
Trial( ?, "RIL", 2, ?);
}
}
}
}