Experiment(){
Context(){
AssignmentGroup(){
ExperimentName = lang2("Memory span for letters", "Gedächtnisspanne für Buchstaben");
DataFileTrialFormat = "%SubjectCode% %TrialCounter% %Trial.SerialLearningList.MemorySetSize% %Trial.ClearScreen:waitResponse.ResponseCode%";
TrialCounter = 1;
SubjectCode = "pxlab";
RepeatErrorTrials = 1;
RandomizeTrials = 0;
}
Session(){
Instruction(){
Text = lang2("Memory span\n \nWe show you a sequence of letters successively. After the last letter a point appears. Please repeat all the letters loud in the same order.\n \nPlease tell the test manager, whether you are ready to start!", ["Die Gedächtnisspanne für Buchstaben", " ", "Es werden Ihnen nacheinander eine Reihe von Buchstaben dargeboten. Nach dem letzten Buchstaben erscheint ein Punkt. Wiederholen Sie daraufhin laut alle Buchstaben, an die Sie sich erinnern können, möglichst in der Reihenfolge, in der sie gezeigt wurden.", " ", "Teilen Sie jetzt bitte dem Versuchsleiter mit, ob Sie bereit sind anzufangen."]);
}
}
SessionEnd(){
SessionEndMessage(){
}
}
Block( BlockCounter);
Trial( TrialCounter, SerialLearningList.MemorySet, ClearScreen:waitResponse.ResponseCode){
FixationMark(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 500;
LocationY = -Trial.SerialLearningList.FontSize/3;
}
ClearScreen:wait(){
Duration = 1000;
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
}
SerialLearningList(){
Duration = 800;
OffDuration = 200;
FontSize = 150;
Ensemble = "";
}
ClearScreen:wait2(){
Duration = 200;
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
}
SimpleDisk(){
Size = 50;
LocationY = -Trial.SerialLearningList.FontSize/3;
Duration = 200;
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
}
ClearScreen:waitResponse(){
Timer = de.pxlab.pxl.TimerCodes.RESPONSE_TIMER;
ResponseSet = [37, 39];
}
ClearScreen:close(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 5000;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block( ?){
Trial( ?, ["B", "K", "G", "P"], ?);
Trial( ?, ["G", "S", "Y", "H"], ?);
Trial( ?, ["M", "D", "S", "P"], ?);
Trial( ?, ["B", "F", "W", "S"], ?);
}
Block( ?){
Trial( ?, ["V", "W", "Z", "G", "L"], ?);
Trial( ?, ["Z", "W", "Y", "M", "Q"], ?);
Trial( ?, ["R", "Q", "P", "T", "D"], ?);
Trial( ?, ["L", "D", "S", "M", "N"], ?);
}
Block( ?){
Trial( ?, ["P", "K", "X", "H", "F", "L"], ?);
Trial( ?, ["S", "F", "P", "R", "B", "V"], ?);
Trial( ?, ["H", "M", "L", "K", "Q", "F"], ?);
Trial( ?, ["V", "J", "K", "L", "H", "C"], ?);
}
Block( ?){
Trial( ?, ["N", "Z", "B", "L", "C", "H", "K"], ?);
Trial( ?, ["L", "G", "H", "T", "X", "Y", "M"], ?);
Trial( ?, ["P", "B", "D", "M", "N", "Q", "H"], ?);
Trial( ?, ["D", "S", "R", "X", "B", "P", "N"], ?);
}
Block( ?){
Trial( ?, ["R", "V", "H", "G", "K", "P", "D", "Q"], ?);
Trial( ?, ["B", "Y", "G", "V", "R", "T", "P", "Q"], ?);
Trial( ?, ["F", "J", "X", "W", "Q", "Z", "T", "N"], ?);
Trial( ?, ["J", "T", "R", "N", "F", "P", "L", "V"], ?);
}
Block( ?){
Trial( ?, ["L", "R", "D", "F", "K", "Y", "S", "T", "Z"], ?);
Trial( ?, ["L", "P", "K", "Z", "B", "Y", "M", "G", "N"], ?);
Trial( ?, ["R", "S", "Q", "V", "M", "B", "W", "T", "Z"], ?);
Trial( ?, ["M", "K", "Y", "R", "P", "S", "G", "J", "X"], ?);
}
Block( ?){
Trial( ?, ["C", "Z", "Q", "W", "T", "S", "Y", "N", "J", "K"], ?);
Trial( ?, ["T", "Z", "Y", "H", "L", "K", "X", "F", "J", "R"], ?);
Trial( ?, ["Y", "H", "D", "Z", "G", "C", "P", "X", "Q", "R"], ?);
Trial( ?, ["C", "N", "W", "T", "Q", "P", "Z", "K", "D", "S"], ?);
}
}
}
}