Experiment(){
Context(){
AssignmentGroup(){
// Trials MUST not be randomized if there are multiple trials in a Block
RandomizeTrials = 0;
SubjectCode = "pxlab";
}
Session(){
Instruction(){
Text = "Item Ranking\n \nPress any key to start!";
}
}
Block();
// Clear the screen after a list is finished. This // works only for single-Trial Blocks
BlockEnd(){
ClearScreen(){
Timer = CLOCK_TIMER;
Duration = 600;
}
}
Trial( Message.Text, ItemRanking.Items, ItemRanking.Ranks, ItemRanking.ResponseTime){
Message(){
LocationY = -200;
Timer = NO_TIMER;
}
ItemRanking(){
PlaceHolder = "*";
LocationX = 0;
LocationY = 0;
HorizontalGap = 40;
LineSkipFactor = 1.2;
Alignment = [de.pxlab.pxl.AlignmentCodes.RIGHT, de.pxlab.pxl.AlignmentCodes.LEFT];
FontSize = 32;
ScreenButtonText = "OK";
ScreenButtonSize = 60;
ScreenButtonColor = ScreenBackgroundColor;
ScreenButtonTextColor = Trial.ItemRanking.Color;
ScreenButtonPosition = BASE_CENTER;
Overlay = JOIN;
// Use the OK field to finish ranking:
Timer = MOUSE_TRACKING_TIMER;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
/* Multiple trials in a Block are possible. Block() { Trial("Rank the Animals", ["Horse", "Dog", "Mouse", "Elefant", "Eagle"], ?, ?); Trial("Rank according to size", ["Boy", "Dogh", "Miuse", "Enhz", "Eft"], ?, ?); } *//* It might, however, be better to have only a single trial in every Block. */
Block(){
Trial( "Rank according to ferocity", ["Horse", "Dog", "Mouse", "Elefant", "Eagle"], ?, ?);
}
Block(){
Trial( "Rank according to size", ["Bon", "Dogh", "Miuse", "Enhz", "Eft"], ?, ?);
}
}
}
}