1 of 35 Timing Timing Exercises Timing Exercises (1-3) (1-3) E-Prime 2002 Workshop E-Prime 2002 Workshop Files on My Documents\My Files on My Documents\My Experiments\Workshop\E-Prime Experiments\Workshop\E-Prime Exercises Exercises Exercises Exercises Copyright Psychology Software Tools Inc. 2002 Copyright Psychology Software Tools Inc. 2002 These materials may be used for local educational purposes These materials may be used for local educational purposes only. all other use requires approval in writing. Please send only. all other use requires approval in writing. Please send requests to [email protected]requests to [email protected]
35
Embed
1 of 35Timing Timing Exercises (1-3) E-Prime 2002 Workshop Files on My Documents\My Experiments\Workshop\E-Prime Exercises E-Prime Timing Exercises Copyright.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
1 of 35Timing
Timing Exercises (1-3)Timing Exercises (1-3)
E-Prime 2002 WorkshopE-Prime 2002 Workshop
Files on My Documents\My Experiments\Files on My Documents\My Experiments\Workshop\E-Prime ExercisesWorkshop\E-Prime Exercises
E-Prime Timing ExercisesE-Prime Timing Exercises
Copyright Psychology Software Tools Inc. 2002Copyright Psychology Software Tools Inc. 2002
These materials may be used for local educational purposes only. all These materials may be used for local educational purposes only. all other use requires approval in writing. Please send requests to other use requires approval in writing. Please send requests to
List of ExercisesList of Exercises 1. Varying Probe Duration – 1. Varying Probe Duration –
TimingParadigm3TimingParadigm3
2. Cumulative Timing of a Repeating 2. Cumulative Timing of a Repeating Sequence of Events – Sequence of Events – TimingParadigm4TimingParadigm4
3. Continuous sequences of events at 3. Continuous sequences of events at high rate with short stimulus times – high rate with short stimulus times – TimingParadigm5TimingParadigm5
3 of 35Timing
General Rule For TimingGeneral Rule For Timing Set the timing of the critical event to Set the timing of the critical event to
be equal the intended time rounded to be equal the intended time rounded to the nearest millisecond and set the nearest millisecond and set prerelease equal to greater than the prerelease equal to greater than the longest time to get ready for the next longest time to get ready for the next display. display.
Examples assume 60 Hz, 16.67ms Examples assume 60 Hz, 16.67ms refresh subtract set the prerelease to refresh subtract set the prerelease to 17 ms and refresh time of 17 ms and refresh time of Refreshes 60 72
1 17 142 33 283 50 42
Refresh Rate Hz
4 of 35Timing
Timing Exercise 1Timing Exercise 1
1. Open My Documents\My Experiments\Workshop\1. Open My Documents\My Experiments\Workshop\E-Prime Exercises\ TimingParadigm3 and run to E-Prime Exercises\ TimingParadigm3 and run to create an EDAT filecreate an EDAT file
3. Use E-DataAid to arrange columns to check 3. Use E-DataAid to arrange columns to check timing accuracytiming accuracy
4. Copy columns into Excel4. Copy columns into Excel
5. Perform calculations using Excel5. Perform calculations using Excel
This exercise presents a masking experiments presenting This exercise presents a masking experiments presenting displays for 1-3 refreshes (17-50ms). In this exercise you will:displays for 1-3 refreshes (17-50ms). In this exercise you will:
1. Use E-DataAid to O1. Use E-DataAid to Open pen My Documents\My Experiments\My Documents\My Experiments\Workshop\E-Prime Exercises\ Workshop\E-Prime Exercises\ TimingParadigm3-3-1.EDAT TimingParadigm3-3-1.EDAT (which was previously created)(which was previously created)
4. Next to the 4. Next to the Select button Select button type type *.OnsetTime; *.OnsetTime; ProbeDuration; ProbeDuration; Time* and click Time* and click SelectSelect
5. Click Add and 5. Click Add and click OKclick OK
7 of 35Timing
Timing Exercise 1- Copy to Timing Exercise 1- Copy to ExcelExcel
5. Arrange columns move 5. Arrange columns move Mask.OnsetTime after Mask.OnsetTime after Probe.OnsetTime. Click on Probe.OnsetTime. Click on column heading to select column heading to select then click & drag to move then click & drag to move
6. Select all columns, 6. Select all columns, copy, open Excel and copy, open Excel and paste.To select cellspaste.To select cells click on click on
Fixation.OnsetTime Fixation.OnsetTime heading and drag across to heading and drag across to TimeProbetoMask. TimeProbetoMask.
Go to Edit and select CopyGo to Edit and select Copy Open Excel Open Excel Paste (Ctrl-V) the cells into Paste (Ctrl-V) the cells into
the first cell of the the first cell of the spreadsheetspreadsheet
If you know how to If you know how to use Excel pivot use Excel pivot tablestables, create a pivot , create a pivot table by selecting table by selecting columns ProbeDuration columns ProbeDuration to Mask-Probe, on Data to Mask-Probe, on Data menu, choose pivot menu, choose pivot table, press Next twice, table, press Next twice, choose Layout, Copy choose Layout, Copy and drag and drag ProbeDuration to row ProbeDuration to row and Mask-Probe to data and Mask-Probe to data twice, double click and twice, double click and select Average and select Average and StdDev as on the leftStdDev as on the left
Open My Documents\My Open My Documents\My Experiments\Workshop\E-Prime Experiments\Workshop\E-Prime Exercises\TimingExercises excel Exercises\TimingExercises excel spreadsheet and select spreadsheet and select Exercise1Pivot tabExercise1Pivot tab
View the calculated means and View the calculated means and SD of Probe and Mask time SD of Probe and Mask time
View the Pivot table of Probe-View the Pivot table of Probe-Mask based on ProbeDurationMask based on ProbeDuration
OR:OR:
11 of 35Timing
What would your report to a What would your report to a Journal?Journal?
Have Assistant verify your “Timing Report” Have Assistant verify your “Timing Report” before moving on. before moving on. Please put the display into this Please put the display into this form and raise your hand.form and raise your hand. Explain what would your Explain what would your put in a journal. put in a journal. Assistant InitialsAssistant Initials ___ ___
In this experiment the displays were presented with In this experiment the displays were presented with means and standard deviations for the probe to means and standard deviations for the probe to mask times of ___________________________mask times of ___________________________
12 of 35Timing
Exercise 1a (Optional) – Use Script to Exercise 1a (Optional) – Use Script to Log Time Between Stimulus Log Time Between Stimulus
OnsetsOnsets
You can add an Inline object and add You can add an Inline object and add script to calculate and log the onset to script to calculate and log the onset to onset time for later analysis in E-onset time for later analysis in E-DataAid.DataAid.
13 of 35Timing
Timing Exercise 1 Study Timing Exercise 1 Study QuestionsQuestions
Could you at this point answer these questions?Could you at this point answer these questions?1.1. What would expect if you ran this exercise on What would expect if you ran this exercise on
a 100 Hertz monitor if it is set up for a 60 Hertz a 100 Hertz monitor if it is set up for a 60 Hertz monitor?monitor?
2.2. What if the PreRelease were set to 0 what What if the PreRelease were set to 0 what would you expect the times to be on a 60 would you expect the times to be on a 60 Hertz monitor?Hertz monitor?
3.3. How might you put in code to detect if the How might you put in code to detect if the times were different from the intended time by times were different from the intended time by more than a millisecond and log the problem?more than a millisecond and log the problem?
4.4. How might you put in code to be sure that the How might you put in code to be sure that the program is running on a 60 Hertz monitor?program is running on a 60 Hertz monitor?
Short Answers are included in the Exercise AppendixShort Answers are included in the Exercise Appendix
14 of 35Timing
Timing Exercise 2Timing Exercise 2This exercise contrasts event mode and This exercise contrasts event mode and
cumulative mode timing. Cumulative mode cumulative mode timing. Cumulative mode minimizes cumulative time error in an minimizes cumulative time error in an experiment. In this exercise you will:experiment. In this exercise you will:
1. Run My Documents\My Experiments\1. Run My Documents\My Experiments\Workshop\E-Prime Exercises\Workshop\E-Prime Exercises\TimingParadigm4AllModes and analyze the TimingParadigm4AllModes and analyze the timing.timing.
2. Use E-DataAid to output graphs and table 2. Use E-DataAid to output graphs and table for Excelfor Excel
3. Report the problem errors in timing3. Report the problem errors in timing
15 of 35Timing
Timing Exercise 2 – Create or Open EDAT Timing Exercise 2 – Create or Open EDAT filefile
1. Either run 1. Either run TimingParadigm4AllModes.es TimingParadigm4AllModes.es oror use the existing file. use the existing file.
2. In E-DataAid o2. In E-DataAid open My pen My Documents\My Experiments\Documents\My Experiments\Workshop\E-Prime Exercises\Workshop\E-Prime Exercises\TimingParadigm4 and run or open TimingParadigm4 and run or open TimingParadigmAllModes100-TimingParadigmAllModes100-1.EDAT file for data (which was 1.EDAT file for data (which was previously created) with E-previously created) with E-DataAid.DataAid.
16 of 35Timing
Get Cumulative Time Get Cumulative Time GraphGraph
3. Click 3. Click CalculateCalculate
4. Move 4. Move over Trial, over Trial, TimingModTimingMode, e, PreReleasePreRelease, , TimingCumTimingCumulativeErroulativeError to cellsr to cells
Onset meanOnset mean Time ProbeOnsetTo Time ProbeOnsetTo
Onset SD of SampleOnset SD of Sample
21 of 35Timing
Export Table to ExcelExport Table to Excel 12. Export to Excel by selecting 12. Export to Excel by selecting
StatView format and Excel CopyStatView format and Excel Copy
22 of 35Timing
Identify Poor TimingIdentify Poor Timing 13. Identify poor timing cases (off by a 13. Identify poor timing cases (off by a
refresh cycle). Note cumulative 100 ms refresh cycle). Note cumulative 100 ms prerelease correct, errors in all other cases. prerelease correct, errors in all other cases.
23 of 35Timing
How would your run your experiment?How would your run your experiment?How would you report it?How would you report it?
Have Assistant verify your “Timing Report” Have Assistant verify your “Timing Report” for a cumulative experimiment. for a cumulative experimiment. In this In this experiment we used ______ timing mode with the experiment we used ______ timing mode with the stimulus to stimulus time mean of ______ and SD of stimulus to stimulus time mean of ______ and SD of ______. ______.
Please put the display into this form and raise your Please put the display into this form and raise your hand.hand. Explain what would your put in a journal. Explain what would your put in a journal.
Assistant InitialsAssistant Initials ___ ___
24 of 35Timing
Timing Exercise 2a (optional) - Run Timing Timing Exercise 2a (optional) - Run Timing Paradigm4 Paradigm4
1. Open TimingParadigm4.es file (My Documents\1. Open TimingParadigm4.es file (My Documents\My Experiments\Workshop\E-Prime Exercises).My Experiments\Workshop\E-Prime Exercises).
2. Run the program with subject number 1.2. Run the program with subject number 1. 3. Change the Timing Mode on the TrialProc 3. Change the Timing Mode on the TrialProc
displays (TrialInstructions, Fixation, Probe, Mask, displays (TrialInstructions, Fixation, Probe, Mask, FeedbackDisplay1) to Event and Prereleases to “0” FeedbackDisplay1) to Event and Prereleases to “0” or or load load TimingParadgim4EventTimeNoPreRelease.es.TimingParadgim4EventTimeNoPreRelease.es.
4. Run the experiment with subject number 2. 4. Run the experiment with subject number 2.
25 of 35Timing
Plot Cumulative Time Errors Plot Cumulative Time Errors Cumulative Mode With PreReleaseCumulative Mode With PreRelease
5. Make table and graph 5. Make table and graph of TimeCumulativeError of TimeCumulativeError by Block Cumulative Run by Block Cumulative Run 1-11-1 Open Program E-DataAidOpen Program E-DataAid Open data file Open data file
TimingParadigm4-TimingParadigm4-1-1-1.1.edat edat
Click CalculateClick Calculate Move Block to rowMove Block to row Move Move
TimeCumulativeErrorTimTimeCumulativeErrorTime to Data e to Data
6. Note time variation 6. Note time variation within one refresh and within one refresh and not not increasingnot not increasing
TimeCumlativeErrorTime:Mean by Block
-2.00
-1.00
0.00
1.00
2.003.00
4.00
5.00
6.00
7.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Block
Tim
eC
um
lati
veE
rro
rTim
e:M
ea
n
26 of 35Timing
Plot Cumulative Time Errors Plot Cumulative Time Errors Event Mode Without PreReleaseEvent Mode Without PreRelease
TimeCumlativeErrorTime:Mean by Block
0.00
100.00200.00
300.00
400.00
500.00600.00
700.00
800.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Block
Tim
eC
um
lati
veE
rro
rTim
e:M
ea
n
7. Make table and graph 7. Make table and graph of TimeCumulativeError of TimeCumulativeError by Block Evente Run 2-1by Block Evente Run 2-1 Close E-Data Aid Close E-Data Aid
WindowsWindows Open data file Open data file
TimingParadigm4-TimingParadigm4-22--1.1.edat edat
Click CalculateClick Calculate Move Block to rowMove Block to row Move Move
TimeCumulativeErrorTimTimeCumulativeErrorTime to Data e to Data
8. Note time variation is 8. Note time variation is increasing with every increasing with every refreshrefresh
27 of 35Timing
Compare Results from Both Compare Results from Both ModesModes
9. Note 9. Note characteristics of characteristics of datadata Cumulative mode Cumulative mode
errors within a refresh errors within a refresh (maximum of 7ms no (maximum of 7ms no cumulative drift)cumulative drift)
Event mode increase Event mode increase by significant amount by significant amount with each event with each event causing substantial causing substantial cumulative drift (in cumulative drift (in this example an this example an average of 47 ms with average of 47 ms with a maximum of 710 a maximum of 710 ms)ms)
1.1. Specify when to use Cumulative Time and Specify when to use Cumulative Time and Event Time methods?Event Time methods?
2.2. Analyze the timing of a cumulative Analyze the timing of a cumulative experiment and report accurately the experiment and report accurately the timing precision in a journal article?timing precision in a journal article?
3.3. Specify the disadvantage of using Specify the disadvantage of using PreRelease and when must you be careful PreRelease and when must you be careful about it?about it?
Short Answers are included in the Exercise AppendixShort Answers are included in the Exercise Appendix
1.1. Specify the range of display times in which Specify the range of display times in which prerelease is sufficient for the computer to prerelease is sufficient for the computer to keep up and caching is not necessary?keep up and caching is not necessary?
2.2. Determine the maximal rate at which you Determine the maximal rate at which you could display images before the computer could display images before the computer can not keep up?can not keep up?
3.3. Add new images to TimingParadigm 5 to Add new images to TimingParadigm 5 to allow rapid presentation of those images?allow rapid presentation of those images?
Short Answers are included in the Exercise AppendixShort Answers are included in the Exercise Appendix