/* Posner, M. I., & Cohen, Y. (1984). Components of visual orienting. In H. Bouma and D. Bouwhuis (Eds.), Attention and Performance X (pp. 531- 556). London: Erlbaum. */
Experiment(){
Context(){
AssignmentGroup(){
DataFileTrialFormat = "%SubjectCode% %ConditionCode% %Trial:SC.SpatialAttentionTarget:Cue.TargetPosition% %Trial:SC.SpatialAttentionTarget:Signal.TargetPosition% %Trial:SC.SpatialAttentionTarget:Signal.ResponseTime% %Trial:IOR.SpatialAttentionTarget:Cue.TargetPosition% %Trial:IOR.SpatialAttentionTarget:Signal.TargetPosition% %Trial:IOR.SpatialAttentionTarget:Signal.ResponseTime% ";
TrialCounter = 1;
SubjectGroup = 0;
SubjectCode = "pxlab";
DataFileDestination = ".";
new ConditionCode = "";
ExperimentName = "Inhibition of Return (Posner & Cohen, 1984)";
}
Session(){
Instruction(){
Text = ["Inhibition of Return", " ", "Press any key as soon as you see a green dot!", " ", "Press any key to start!"];
}
}
SessionEnd(){
SessionEndMessage(){
}
}
Block(){
Message(){
Text = "Press any key to go on!";
Timer = de.pxlab.pxl.TimerCodes.RELEASE_RESPONSE_TIMER;
}
}
BlockEnd(){
Message(){
Text = "P A U S E";
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 1000;
}
}
Trial:SC( ConditionCode, SpatialAttentionTarget:Cue.TargetPosition, SpatialAttentionTarget:Signal.TargetPosition, SpatialAttentionTarget:Signal.ResponseTime){
SpatialAttentionFrames(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 1100;
}
SpatialAttentionTarget:Cue(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 75;
TargetPosition = "";
TargetColor = Red;
TargetType = de.pxlab.pxl.SpatialAttentionTargetCodes.SQUARE;
TargetSize = 20;
}
SpatialAttentionFrames:Break1(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 100;
}
SpatialAttentionTarget:Signal(){
Timer = de.pxlab.pxl.TimerCodes.RESPONSE_TIMER;
TargetPosition = "";
TargetColor = Green;
TargetType = de.pxlab.pxl.SpatialAttentionTargetCodes.DOT;
TargetSize = 40;
ResponseTime = "";
}
}
Trial:SCNogo( ConditionCode, SpatialAttentionTarget:Cue.TargetPosition, SpatialAttentionTarget:Signal.ResponseCode, Feedback:Nogo.Response){
SpatialAttentionFrames(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 1100;
}
SpatialAttentionTarget:Cue(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 50;
TargetPosition = "";
TargetColor = Red;
TargetType = de.pxlab.pxl.SpatialAttentionTargetCodes.SQUARE;
TargetSize = 20;
}
SpatialAttentionFrames:Break1(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 100;
}
SpatialAttentionTarget:Signal(){
Timer = de.pxlab.pxl.TimerCodes.LIMITED_RESPONSE_TIMER;
Duration = 2000;
TargetPosition = "";
TargetColor = Green;
TargetType = de.pxlab.pxl.SpatialAttentionTargetCodes.NO_TARGET;
TargetSize = 40;
ResponseTime = "";
ResponseCode = "";
}
Feedback:Nogo(){
Evaluation = de.pxlab.pxl.EvaluationCodes.CHECK_NOGO;
ResponseParameter = "Trial:SCNogo.SpatialAttentionTarget:Signal.ResponseCode";
CorrectCode = de.pxlab.pxl.ResponseCodes.TIME_OUT;
FalseText = "Attention!\nPlease wait for the signal!";
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 1000;
}
}
Trial:IOR( ConditionCode, SpatialAttentionTarget:Cue.TargetPosition, SpatialAttentionTarget:Signal.TargetPosition, SpatialAttentionTarget:Signal.ResponseTime){
SpatialAttentionFrames(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 1100;
}
SpatialAttentionTarget:Cue(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 300;
TargetPosition = "";
TargetColor = Red;
TargetSize = 20;
TargetType = de.pxlab.pxl.SpatialAttentionTargetCodes.SQUARE;
}
SpatialAttentionFrames:Break1(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 200;
}
SpatialAttentionTarget:CenterCue(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 300;
TargetPosition = de.pxlab.pxl.AlignmentCodes.CENTER;
TargetColor = Red;
TargetSize = 20;
TargetType = de.pxlab.pxl.SpatialAttentionTargetCodes.SQUARE;
}
SpatialAttentionFrames:Break2(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 200;
}
SpatialAttentionTarget:Signal(){
Timer = de.pxlab.pxl.TimerCodes.RESPONSE_TIMER;
TargetPosition = "";
TargetColor = Green;
TargetType = de.pxlab.pxl.SpatialAttentionTargetCodes.DOT;
TargetSize = 40;
ResponseTime = "";
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block(){
Trial:SCNogo( -1, de.pxlab.pxl.AlignmentCodes.LEFT, ?, ?);
Trial:SCNogo( -1, de.pxlab.pxl.AlignmentCodes.RIGHT, ?, ?);
Trial:SC( 1, de.pxlab.pxl.AlignmentCodes.LEFT, de.pxlab.pxl.AlignmentCodes.LEFT, ?);
Trial:SC( 1, de.pxlab.pxl.AlignmentCodes.RIGHT, de.pxlab.pxl.AlignmentCodes.RIGHT, ?);
Trial:SC( 2, de.pxlab.pxl.AlignmentCodes.LEFT, de.pxlab.pxl.AlignmentCodes.RIGHT, ?);
Trial:SC( 2, de.pxlab.pxl.AlignmentCodes.RIGHT, de.pxlab.pxl.AlignmentCodes.LEFT, ?);
}
Block(){
Trial:IOR( 11, de.pxlab.pxl.AlignmentCodes.LEFT, de.pxlab.pxl.AlignmentCodes.LEFT, ?);
Trial:IOR( 11, de.pxlab.pxl.AlignmentCodes.RIGHT, de.pxlab.pxl.AlignmentCodes.RIGHT, ?);
Trial:IOR( 12, de.pxlab.pxl.AlignmentCodes.LEFT, de.pxlab.pxl.AlignmentCodes.RIGHT, ?);
Trial:IOR( 12, de.pxlab.pxl.AlignmentCodes.RIGHT, de.pxlab.pxl.AlignmentCodes.LEFT, ?);
}
}
}
}