Experiment(){
Context(){
AssignmentGroup(){
ExperimentName = "Backward Masking";
HideCursor = 0;
SubjectCode = "pxlab";
TrialFactor = 3;
}
Session(){
Instruction(){
Text = ["Response Time Measurement", " ", "You will see a fixation cross indicating that the target signal is about to come. The fixation cross will disappear and after some random time a white target will be shown. Press any mouse button as soon as you see the target.", " ", "Press any key now to start!"];
}
}
SessionEnd(){
SessionEndMessage(){
}
}
Trial( TrialCounter, SimpleDisk:Pre.Duration, ResponseTime){
FixationMark(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 500;
}
ClearScreen:WaitSignal(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 300;
}
ClearScreenRandomTime(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
ExpectedWait = 1000;
WaitingTimeLimit = 3500;
}
SimpleDisk:Pre(){
Timer = de.pxlab.pxl.TimerCodes.VS_CLOCK_TIMER|de.pxlab.pxl.TimerCodes.START_RESPONSE_TIMER;
Color = White;
Size = 150;
}
SimpleDisk:Target(){
Timer = de.pxlab.pxl.TimerCodes.NO_TIMER;
Color = White;
Size = 450;
}
SimpleDisk(){
Overlay = de.pxlab.pxl.OverlayCodes.JOIN;
Timer = de.pxlab.pxl.TimerCodes.VS_RESPONSE_TIMER|de.pxlab.pxl.TimerCodes.STOP_RESPONSE_TIMER;
Color = Black;
Size = 150;
}
Feedback(){
Text = "%ResponseTime@i% ms";
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 500;
Visible = 1;
}
ClearScreen(){
Timer = de.pxlab.pxl.TimerCodes.VS_CLOCK_TIMER;
Duration = 800;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block(){
Trial( ?, <20, 40, 60, 80, 100>, ?);
}
}
}
}