Experiment(){
Context(){
AssignmentGroup(){
ExperimentName = "Choice Response Selection";
SubjectCode = "pxlab";
RandomizeTrials = 0;
new Selection = Trial.ChoiceResponse.Selection+1;
}
Session(){
Instruction(){
Text = ["Choice Response", " ", "Use the mouse pointer and button to select one of the given alternatives.", " ", "Press any key now to start!"];
}
}
Trial( Message.Text, ChoiceResponse.Selection){
Message(){
LocationY = -100;
Timer = de.pxlab.pxl.TimerCodes.NO_TIMER;
}
ChoiceResponse(){
Overlay = de.pxlab.pxl.OverlayCodes.JOIN;
Timer = de.pxlab.pxl.TimerCodes.MOUSE_TRACKING_TIMER;
Choices = ["yes", "don\'t know", "no"];
LocationY = 100;
Width = 800;
}
Feedback(){
Text = "You did select alternative Nr. %Selection%!";
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 2000;
}
ClearScreen(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 300;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block(){
Trial( "Do there exist unicorns?", ?);
Trial( "Has anybody ever seen a unicorn?", ?);
Trial( "Would you like to ride a unicorn?", ?);
}
}
}
}