Experiment(){
Context(){
AssignmentGroup(){
SubjectCode = "pxlab";
TrialFactor = 1;
SkipBoundingBlockDisplays = 0;
new nPoints = 9;
new sDots = 0;
new pFace = 1;
}
Session(){
Instruction(){
Text = ["Self-Assessment Manikin Scales", " ", "Use the mouse to select or deselect a scale value and use the Space bar to indicate that your selection is final.", " ", "Press any key to start!"];
}
}
Block( Message.Text, nPoints, sDots){
Message(){
Timer = CLOCK_TIMER;
Duration = 2000;
}
ClearScreen(){
Timer = CLOCK_TIMER;
Duration = 300;
}
}
Trial:Color( SimpleBar.Color, SAM.TimeControl, SAM.SelectionTimes, SAM.ResponseTime, SAM.ResponseTime2, SAM.ResponseTime3, SAM.SelectionSet, SAM.Selection){
SimpleBar(){
LocationX = 0;
LocationY = -screenHeight()/8;
Width = screenWidth()/2;
Height = screenHeight()/2;
Overlay = DISPLAY_LIST;
Timer = NO_TIMER;
}
SAM(){
Scale = [de.pxlab.pxl.SAMScaleCodes.VALENCE, de.pxlab.pxl.SAMScaleCodes.AROUSAL, de.pxlab.pxl.SAMScaleCodes.DOMINANCE];
NumberOfColumns = nPoints;
SelectionPoints = sDots;
Portrait = 1;
LineWidth = 1.5;
Width = idiv(screenWidth(), 9);
LocationY = screenBottom()-32;
}
}
Trial:Picture( Picture.FileName, SAM.TimeControl, SAM.SelectionTimes, SAM.ResponseTime, SAM.ResponseTime2, SAM.ResponseTime3, SAM.SelectionSet, SAM.Selection){
Picture(){
Directory = "@./images/PHIL";
LocationX = 0;
LocationY = -screenHeight()/8;
Overlay = DISPLAY_LIST;
Timer = NO_TIMER;
}
SAM(){
Scale = [de.pxlab.pxl.SAMScaleCodes.VALENCE, de.pxlab.pxl.SAMScaleCodes.AROUSAL, de.pxlab.pxl.SAMScaleCodes.DOMINANCE];
NumberOfColumns = nPoints;
SelectionPoints = sDots;
Portrait = 0;
LineWidth = 1.5;
Width = idiv(screenWidth(), 9);
LocationY = screenBottom()-32;
}
}
Trial:Word( Message.Text, SAM.TimeControl, SAM.SelectionTimes, SAM.ResponseTime, SAM.ResponseTime2, SAM.ResponseTime3, SAM.SelectionSet, SAM.Selection){
Message(){
LocationX = 0;
LocationY = -screenHeight()/12;
FontSize = screenHeight()/4;
Overlay = DISPLAY_LIST;
Timer = NO_TIMER;
}
SAM(){
Scale = [de.pxlab.pxl.SAMScaleCodes.VALENCE, de.pxlab.pxl.SAMScaleCodes.AROUSAL, de.pxlab.pxl.SAMScaleCodes.DOMINANCE];
NumberOfColumns = nPoints;
SelectionPoints = sDots;
Portrait = 1;
LineWidth = 1.5;
Width = idiv(screenWidth(), 9);
LocationY = screenBottom()-32;
}
}
// Command line assignments
AssignmentGroup();
}
Procedure(){
Session(){
Block( "Full Nine Point Scale", 9, 0){
Trial:Color( Blue, ?, ?, ?, ?, ?, ?, ?);
Trial:Picture( "9163_lores.jpg", ?, ?, ?, ?, ?, ?, ?);
Trial:Word( "angry", ?, ?, ?, ?, ?, ?, ?);
}
Block( "Reduced Nine Point Scale", 9, 1){
Trial:Color( Red, ?, ?, ?, ?, ?, ?, ?);
Trial:Picture( "8276_lores.jpg", ?, ?, ?, ?, ?, ?, ?);
Trial:Word( "cold", ?, ?, ?, ?, ?, ?, ?);
}
Block( "Seven Point Scale", 7, 0){
Trial:Color( Red, ?, ?, ?, ?, ?, ?, ?);
Trial:Picture( "8276_lores.jpg", ?, ?, ?, ?, ?, ?, ?);
Trial:Word( "cold", ?, ?, ?, ?, ?, ?, ?);
}
Block( "Five Point Scale", 5, 0){
Trial:Color( Blue, ?, ?, ?, ?, ?, ?, ?);
Trial:Picture( "9163_lores.jpg", ?, ?, ?, ?, ?, ?, ?);
Trial:Word( "angry", ?, ?, ?, ?, ?, ?, ?);
}
}
}
}