Experiment(){
Context(){
AssignmentGroup(){
SubjectCode = "pxlab";
new QuestionID = 0;
SkipBoundingBlockDisplays = 0;
}
Session(){
Instruction(){
Text = ["A Variety of Rating Scales", " ", "Please use the mouse to move the pointer on the scale. Press the SPACE bar if your adjustment is finished.", " ", "Press any key now to start!"];
}
}
SessionEnd(){
SessionEndMessage(){
}
}
Block( Instruction.Text){
Instruction(){
Timer = CLOCK_TIMER;
Duration = 1600;
}
}
Trial:A( QuestionID, RatingScale.Text, RatingScale.Labels, RatingScale.ScaleValue){
RatingScale(){
NumberOfTicks = 5;
LowestTick = 1;
TickStep = 1;
BarColor = gray();
TickColor = lightGray();
PointerColor = yellow();
ScaleLocationX = 0;
ScaleLocationY = 40;
ScaleWidth = 640;
ScaleHeight = 50;
TickType = de.pxlab.pxl.RatingScaleTickCodes.BAR_TICKS;
LineWidth = 16;
LabelType = de.pxlab.pxl.RatingScaleLabelCodes.NUMBER_LABELS;
LabelDistance = 8;
PointerType = de.pxlab.pxl.RatingScalePointerCodes.DOUBLE_POINTER;
PointerSize = 40;
AnchorLabels = 1;
AnchorDistance = 20;
ScaleValue = 3;
RoundingFactor = 100;
Timer = de.pxlab.pxl.TimerCodes.MOUSE_TRACKING_KEY_TIMER;
ResponseSet = SPACE_KEY;
}
ClearScreen(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 300;
}
}
Trial:B( QuestionID, RatingScale.Text, RatingScale.ScaleValue){
RatingScale(){
NumberOfTicks = 6;
LowestTick = 0;
TickStep = 20;
BarColor = gray();
TickColor = lightGray();
PointerColor = yellow();
ScaleLocationX = 0;
ScaleLocationY = 40;
ScaleWidth = 640;
ScaleHeight = 50;
TickType = de.pxlab.pxl.RatingScaleTickCodes.BAR_TICKS;
LineWidth = 12;
LabelType = de.pxlab.pxl.RatingScaleLabelCodes.NUMBER_LABELS;
LabelDistance = 8;
PointerType = de.pxlab.pxl.RatingScalePointerCodes.DOWN_POINTER;
PointerSize = 40;
AnchorLabels = 0;
AnchorDistance = 20;
ScaleValue = -1;
RoundingFactor = 100;
Timer = de.pxlab.pxl.TimerCodes.MOUSE_TRACKING_KEY_TIMER;
ResponseSet = SPACE_KEY;
}
ClearScreen(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 300;
}
}
Trial:C( QuestionID, RatingScale.Text, RatingScale.ScaleValue){
RatingScale(){
NumberOfTicks = 6;
LowestTick = 0;
TickStep = 1;
BarColor = gray();
TickColor = lightGray();
PointerColor = yellow();
ScaleLocationX = 0;
ScaleLocationY = 40;
ScaleWidth = 640;
ScaleHeight = 50;
TickType = de.pxlab.pxl.RatingScaleTickCodes.BAR_TICKS;
LineWidth = 12;
LabelType = de.pxlab.pxl.RatingScaleLabelCodes.NUMBER_LABELS;
LabelDistance = 8;
PointerType = de.pxlab.pxl.RatingScalePointerCodes.CROSS_POINTER;
PointerSize = 40;
AnchorLabels = 0;
AnchorDistance = 20;
ScaleValue = -1;
RoundingFactor = 1;
Timer = de.pxlab.pxl.TimerCodes.MOUSE_TRACKING_KEY_TIMER;
ResponseSet = SPACE_KEY;
}
ClearScreen(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 300;
}
}
Trial:D( QuestionID, RatingScale.Text, RatingScale.ScaleValue){
RatingScale(){
NumberOfTicks = 4;
LowestTick = 0;
TickStep = 1;
BarColor = gray();
TickColor = lightGray();
PointerColor = yellow();
ScaleLocationX = 0;
ScaleLocationY = 40;
ScaleWidth = 640;
ScaleHeight = 50;
TickType = de.pxlab.pxl.RatingScaleTickCodes.BAR_TICKS;
LineWidth = 12;
LabelType = de.pxlab.pxl.RatingScaleLabelCodes.TEXT_LABELS;
LabelDistance = 8;
Labels = ["surely not", "preferably not", "maybe", "sure yes"];
PointerType = de.pxlab.pxl.RatingScalePointerCodes.CROSS_POINTER;
PointerSize = 40;
AnchorLabels = 0;
AnchorDistance = 20;
ScaleValue = -1;
RoundingFactor = 1;
Timer = MOUSE_TRACKING_KEY_TIMER;
ResponseSet = SPACE_KEY;
}
ClearScreen(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 300;
}
}
Trial:E( QuestionID, RatingScale.Text, RatingScale.ScaleValue){
RatingScale(){
NumberOfTicks = 6;
LowestTick = 0;
TickStep = 20;
BarColor = gray();
TickColor = lightGray();
PointerColor = yellow();
ScaleLocationX = 0;
ScaleLocationY = 40;
ScaleWidth = 640;
ScaleHeight = 50;
TickType = de.pxlab.pxl.RatingScaleTickCodes.BAR_TICKS;
LineWidth = 12;
LabelType = de.pxlab.pxl.RatingScaleLabelCodes.NUMBER_LABELS;
LabelDistance = 8;
PointerType = de.pxlab.pxl.RatingScalePointerCodes.DOWN_POINTER;
PointerSize = 40;
AnchorLabels = 0;
AnchorDistance = 20;
ScaleValue = -1;
RoundingFactor = 100;
ScreenButtonSize = 60;
ScreenButtonPosition = BASE_CENTER;
Timer = MOUSE_TRACKING_TIMER;
ResponseSet = SCREEN_BUTTON;
}
ClearScreen(){
Timer = de.pxlab.pxl.TimerCodes.CLOCK_TIMER;
Duration = 300;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block( "Text Labels"){
Trial:D( 1, "I will buy green", ?);
Trial:D( 2, "I will buy red", ?);
}
Block( "Integer Numbers only"){
Trial:C( 1, "The brightness of green", ?);
Trial:C( 2, "The lightness of red", ?);
}
Block( "Numbers and anchor labels"){
Trial:A( 1, "The color green is", ["sad\nloney", "happy\nglad"], ?);
Trial:A( 2, "The color red is", ["light\nbright", "dark\nscary"], ?);
}
Block( "Numbers only"){
Trial:B( 1, "The brightness of green", ?);
Trial:B( 2, "The lightness of red", ?);
}
Block( "Using a screen stop button"){
Trial:E( 1, "The brightness of green", ?);
Trial:E( 2, "The lightness of red", ?);
}
}
}
}