Experiment(){
Context(){
AssignmentGroup(){
ExperimentName = "Subject Groups";
SubjectCode = "pxlab";
SubjectGroup = "blocked";
RandomizeBlocks = 1;
}
Procedure(){
Instruction(){
Text = ["Assignment of Blocks to Subject Groups", " ", "The group \'blocked\' gets stimuli with the color factor being blocked. The group \'mixed\' gets stimuli with a random mixture of the color factor.", " ", "This example runs the \'%SubjectGroup%\' condition.", " ", "Press any key now to start!"];
}
}
Session(){
Instruction(){
Text = ["Response Time to Colored Targets", " ", "You will see a colored object on the left or right side of the screen. Press a left or right button for the respective signal.", " ", "Press any key now to start!"];
}
}
SessionEnd(){
SessionEndMessage(){
}
}
Block( ActiveSubjectGroups);
Trial( TrialCounter, SimpleDisk.Color, SimpleDisk.LocationX, SimpleDisk.ResponseTime, SimpleDisk.ResponseCode){
ClearScreen(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 600;
}
SimpleDisk(){
Timer = de.pxlab.pxl.TimerCodes.RESPONSE_TIMER;
}
}
// Command line assignments
AssignmentGroup();
}
Factors(){
CovariateFactor( SubjectGroup){
FactorLevel( "blocked");
FactorLevel( "mixed");
}
IndependentFactor( Trial.SimpleDisk.Color);
IndependentFactor( Trial.SimpleDisk.LocationX);
DependentFactor( Trial.SimpleDisk.ResponseCode);
DependentFactor( Trial.SimpleDisk.ResponseTime);
}
Procedure(){
Session(){
Block( "blocked"){
Trial( ?, Red, <-200.0, -100.0, 100, 200>, ?, ?);
}
Block( "blocked"){
Trial( ?, Green, <-200.0, -100.0, 100, 200>, ?, ?);
}
Block( "blocked"){
Trial( ?, Blue, <-200.0, -100.0, 100, 200>, ?, ?);
}
Block( "blocked"){
Trial( ?, Yellow, <-200.0, -100.0, 100, 200>, ?, ?);
}
Block( "mixed"){
Trial( ?, Red, <-200.0, -100.0, 100, 200>, ?, ?);
Trial( ?, Green, <-200.0, -100.0, 100, 200>, ?, ?);
Trial( ?, Blue, <-200.0, -100.0, 100, 200>, ?, ?);
Trial( ?, Yellow, <-200.0, -100.0, 100, 200>, ?, ?);
}
}
}
}