文档介绍:
Eprime高级使用技巧PPT 1 of 20AdvancedAdvanced Exercises (1-4)E-Prime 2002 WorkshopFiles on C:\My Experiments\Workshop\E-Prime ExercisesE-Prime Advanced Exercises2 of 20AdvancedList of Adanced Exercises 1. StringInput 2. Response Areas for Mouse Input 3. Sprite Animation 4. Suspend and Resume3 of 20A...Eprime高级使用技巧PPT 1 of 20AdvancedAdvanced Exercises (1-4)E-Prime 2002 WorkshopFiles on C:\My Experiments\Workshop\E-Prime ExercisesE-Prime Advanced Exercises2 of 20AdvancedList of Adanced Exercises 1. StringInput 2. Response Areas for Mouse Input 3. Sprite Animation 4. Suspend and Resume3 of 20AdvancedExercise 1: StringInput This example illustrates the use of string input. The subjectis presented with a question and is asked to type aresponse. The subject's response echo's to the display, sothat they may see their response. String input in E-Prime is currently supported by setting theMaxCount parameter on the Advanced pages of theDuration/Input page. The MaxCount parameter allows youto set the maximum number of keys allowed for input. Thetermination response is also set in the Advanced pagesallowing you to select any key to terminate a trial. The echoproperty is set within the Advanced pages of theDuration/Input tab, and selecting the echo tab, you willneed to add the Display device to echo. Load C:\My Experiments\Workshop\E-PrimeExercises\StringInput.es and run paradigm4 of 20AdvancedEdit Display Echo Color and Text1. Open TextDisplay1 propertypages, select Duration/Inputtab and click on the Advancedbutton2. Click on Echo tab, selectDisplay icon and click Edit4. Using the drop down menuschange Fore Color to “blue”and Back Color to “gray”5. Run program5 of 20AdvancedExercise 2: Response Areas for Mouse Input The sample demonstrates how to create response areas onthe screen, then collect and score mouse-click responsesbased on those areas. The experiment uses HitTest, amethod of the SlideState object which returns the stringname of a SlideImage or SlideText object at specifiedcoordinates. Load C:\My Experiments\Worskhop\E-PrimeExercises\Response Areas for Mouse and run paradigm6 of 20AdvancedAdd Another Response Area 1. Open Stimulus object,select SlideText toolbutton, click in Slide gridarea in the center of the 4boxes 2. Double click on theSlideText sub-object toedit text, type [Center] 3. Select Text1 sub-object, open the propertypages and change BorderWidth to “1”7 of 20AdvancedEdit TrialList 4. Open TrialList Add another row Add CenterCenterattribute Type an “*” in thelast cell 5. Type5. Type CenterCenter ininthe Stimulus columnthe Stimulus columnandand Text1Text1 in thein theCorrectAnswerCorrectAnswercolumncolumnNote, Text1 is theNote, Text1 is thename of thename of theTextSlide sub-objectTextSlide sub-object8 of 20AdvancedReview Code 6. Examine the code todetermine how E-Prime is able toidentify the location of the mouseclick. Find coordinates of mouse click(Mouse.GetCursorPos ptMouse.x,ptMouse.y) Determine string name of SlideTextobject at mouse click coordinates.Assign that value to strHit(strHit = theState.HitTest(ptMouse.x,ptMouse.y) Compare string name where mouse urred to CorrectAnswerattribute on each trial, and scoreresponse 7. Run program9 of 20AdvancedExercise 3: Sprite Animation This example illustrates the u...
内容来自淘豆网转载请标明出处.