Experiment(){
Context(){
AssignmentGroup(){
ExperimentName = "Masked Picture Recognition";
SubjectCode = "pxlab";
new imageDir = "./images/picture_masked";
}
Session(){
Instruction(){
Text = ["Picture Memory", " ", "We show you a series of pictures. Please try to keep them in your mind as good as possible. You later will be asked to recognize them.", " ", "Press any key now to start!"];
}
}
Block:Study();
BlockEnd:Study(){
BlockEndMessage(){
}
}
Block(){
Instruction(){
Text = ["Picture Recognition", " ", "Now you will again see a series of pictures. Each picture will be followed by a mask such that it is difficult to see.", "Please indicate with your response whether the respective picture has been contained in the previous series (\'old\' - Cursor Left Key) or is a new picture (Cursor Right Key).", " ", "Press any key now to go on."];
}
}
SessionEnd(){
SessionEndMessage(){
}
}
Trial:Study( TrialCounter, Picture.FileName){
FixationMark(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 300;
}
Picture(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 2000;
Directory = imageDir;
}
ClearScreen(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 200;
}
}
Trial( TrialCounter, PictureMasked.FileName, PictureMasked.MaskFileName, PictureMasked.ResponseCode){
FixationMark(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 400;
}
Message(){
LocationY = 320;
Text = "<= old - - new =>";
FontSize = 32;
Timer = de.pxlab.pxl.TimerCodes.NO_TIMER;
}
PictureMasked(){
Overlay = de.pxlab.pxl.OverlayCodes.TRANSPARENT;
SOATimer = de.pxlab.pxl.TimerCodes.VS_CLOCK_TIMER;
SOADuration = 100;
Directory = imageDir;
Timer = de.pxlab.pxl.TimerCodes.RESPONSE_TIMER;
ResponseSet = [37, 39];
}
ClearScreen(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 300;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block:Study(){
Trial:Study( ?, "cd01-img0003c.jpg");
Trial:Study( ?, "cd01-img0006c.jpg");
Trial:Study( ?, "cd01-img0007b.jpg");
}
Block(){
Trial( ?, "cd01-img0003c.jpg", "mask_001c.jpg", ?);
Trial( ?, "cd01-img0003b.jpg", "mask_001b.jpg", ?);
Trial( ?, "cd01-img0006c.jpg", "mask_001c.jpg", ?);
Trial( ?, "cd01-img0006b.jpg", "mask_001b.jpg", ?);
Trial( ?, "cd01-img0007c.jpg", "mask_001c.jpg", ?);
Trial( ?, "cd01-img0007b.jpg", "mask_001b.jpg", ?);
}
}
}
}