|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/15/2010 2:19:46 PM
Posts: 4,
Visits: 6
|
|
| i am looking to create a fixed interval experiment wherein i can measure the inter-response time - the time between each response. this is proving difficult because it is something that has to happen across trials... ie. 1st trial goes, then response, then 2nd trial goes, then response, and i have to get those responses from both trials and then see how long apart they were. and then so on along the line. Any suggestions as to how/if i can accomplish this?
|
|
|
|
|
Forum MVP
      
Group: Forum Members
Last Login: 5/14/2012 4:43:58 PM
Posts: 728,
Visits: 2,932
|
|
Do you need to know the inter-response time while the experiment runs, or do you just need it later for analysis?
Suppose your stimulus-response object is called StimText. If you just need the inter-response time for analysis, then you can calculate it yourself by subtracting StimText.RTTime of trial(i-1) from StimText.RTTime of trial(i). You might want to do that with an Excel macro after exporting data to Excel.
If you need the inter-response time while the experiment runs, then you will need to define a global variable to hold the .RTTime from one trial to the next, and then calculate the inter-response time with appropriately placed inline script. See Chapter 4 (Using E-Basic) of the User's Guide that came with E-Prime for more general info on global variables and script. Suppose you define a global variable named RTTime0, then your script might look like
c.SetAttrib "StimText.InterResponseTime", StimText.RTTime - RTTime0
RTTime0 = StimText.RTTime
In fact, even if you do not need this value at run time, you might find it convenient to calculate it and log it in E-Prime just to save you the trouble of doing it later in Excel.
-- David McFarlane, Professional Faultfinder
|
|
|
|