Experiment(){
Context(){
AssignmentGroup(){
ExperimentName = "Flicker Photometry";
SubjectCode = "pxlab";
AdjustableStep = 1;
AdjustmentUpKey = de.pxlab.pxl.KeyCodes.RIGHT_KEY;
AdjustmentDownKey = de.pxlab.pxl.KeyCodes.LEFT_KEY;
new FromWhere = 0;
}
Session(){
Instruction(){
Text = ["Flicker Photometry", " ", "You will see a flickering stimulus field separated into two parts. Your task is to adjust the stimulus until the flicker is minimal.", "Use the left/right cursor keys to adjust the flicker. You yourself have to figure out which key de- or increases the flicker. Press the \'Space\'-key to indicate that flicker is minimal.", " ", "Press any key now to start!"];
}
}
SessionEnd(){
SessionEndMessage(){
}
}
Trial( FlickeringBarsPhotometry.TestColor, FlickeringBarsPhotometry.MatchingLuminance){
FlickeringBarsPhotometry(){
MatchingColor = [50, 0.313, 0.329];
adjustable MatchingLuminance = 50;
FieldWidth = 200;
FieldHeight = 200;
NumberOfElements = 2;
FrameDuration = 20;
FrameTimer = de.pxlab.pxl.TimerCodes.VS_CLOCK_TIMER;
Timer = de.pxlab.pxl.TimerCodes.RESPONSE_TIMER;
}
Feedback(){
Text = "Target Color = %Trial.FlickeringBarsPhotometry.TestColor%\nMatching Color = %Trial.FlickeringBarsPhotometry.MatchingColor%\n \nPress a key to go on!";
FontSize = 32;
Timer = de.pxlab.pxl.TimerCodes.RESPONSE_TIMER;
}
ClearScreen(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 300;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block(){
Trial( [50, 0.4, 0.3], ?);
Trial( [30, 0.3, 0.2], ?);
Trial( [40, 0.3, 0.4], ?);
}
}
}
}